| 08-22-2003, 10:48 AM | #1 |
Im working on my first spell trigger and heres wat i got so far Sarahs Wrath Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Sarah's Wrath sarah Actions Unit - Create 1 _ for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing 0.00 degrees Unit - Create 1 _ for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing 45.00 degrees Unit - Create 1 _ for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing 135.00 degrees Unit - Create 1 _ for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing 180.00 degrees -------------------------------------------------- I want to have each of the above units (invisivle casters) to cast a cone damage spell, like the 0 degrees is casting carrion, the 45 is breath of fire, the casting unit casts a cone dmg with possesion as the missle, the 135 casts crushing wave, and the 180 casts breath of frost... the thing is they are all based of of one spell i just made four copies and changed the missle art.... I also have no idea how to finish the trigger. In the end, i want the caster and the four created guys to cast their respective spell at the same time so it will be like 180 degrees of death thing... can anyone help me with finishing this trigger? i want them to cast in the direction they are facing :( --------------------------------------------------------------------------------- *EDIT* Bah, what am i thinking? its wayyyy too early theres no one on... =( |
| 08-22-2003, 07:35 PM | #2 |
I KNOW theres someone out there who understands what im saying and can help me... i really need this to finish my map if theres anything in the description that u dont understand just ask ill try to describe differently |
| 08-22-2003, 08:09 PM | #3 |
Unit - Issue Order targeting a Point - Issued (Last Created Unit) to <spell you based it off of> Point with Polar Offest, Position of (Last Created Unit) offset by 1 towards 0 degrees (use 45, 135, and 180 for the other three). Make sure you put these inbetween the create actions. |
| 08-22-2003, 10:23 PM | #4 |
Thanks a lot, Shv |
| 08-22-2003, 10:35 PM | #5 |
Ok uhh, my spell isnt in the list of spells to cast... =( its a custom spell based off of breath of fire.. all 5 of the spells are. so how do i get them to cast it? *NOTE* I didnt edit the Breath of Fire ability i just created a new custom ability with BoF as the Base skill... then i just changed the damage and interval rates and the missles... |
| 08-22-2003, 10:37 PM | #6 |
picking the base spell would work I think |
| 08-22-2003, 11:42 PM | #7 |
do you need a target for the Breath of Fire ability to work? Or can you just order the unit to fire the spell in direction? |
| 08-23-2003, 12:02 AM | #8 |
A single unit cannot have more than 1 ability based off of the same ability. This means you can't give a unit so many cone abilities, you need a different unit with each ability. Also, why do you want to use the possession missle for a cone spell? The art of the cone spells doesn't move and there is only one of it, so the possession will just pop up a single banshee thingy in front of the unit and not even move but the enemies take damage. I would use a different effect... |
| 08-23-2003, 12:20 AM | #9 |
The character maodel is a banshee though and the spells description is: Using her powers to their fullest extent, Kerrigan manifests all of her negative energies, from being defeated so many years ago, into every conceivable element, then she hurls the creation at her enemies, dealing 950 damage to anything in her way. I thought that the possesion model kinda added a personal touch to the ability... And yes the model would move... its set as missle... lol the created units dont HAVE the ability... i was going to Order them to use it from a trigger... plus if i cant have them use their ability cuz its base is same ill just copy the units.. =) What I really need to know is how to command them to use the ability if it isnt in the list of orders for the trigger... But thanks for the help No your dont need a target for BoF last time i checked it was like Shockwave or Carrion Swarm |
| 08-23-2003, 12:42 AM | #10 |
Is my logic flawed on the base idea of what i want to do? or is the trigger just impossible? |
| 08-23-2003, 01:48 AM | #11 |
AHA! ur in luck! there is an order that casts BOF, and since all of your abiltys are based of it it should work fine, just make the 4 different units different and give them each their ver of BOF then when you give them the cast BOF order it should work fine, just make sure not to change any strings in the spell or it might flaw the order |
| 08-23-2003, 06:05 AM | #12 |
so u mean it wont force them to cast the stocked BoF? If not then your my hero.. thanks man i didnt know it was that easy |
| 08-23-2003, 09:19 AM | #13 |
I been following the thread HazeyInDaHead and come up with: function Trig_Sarahs_Wrath_Actions takes nothing returns nothing local string array spellorders local integer array spellIds local real array deg local integer noSpells = 6 local integer index local real casterAngle = GetUnitFacing(GetOrderedUnit()) set index = 1 set spellorders[index] = "breathoffire" set spellIds[index] = 'ACbc' set deg[index] = casterAngle set index = 2 set spellorders[index] = "carrionswarm" set spellIds[index] = 'ACca' set deg[index] = deg[index-1] + 60.0 set index = 3 set spellorders[index] = "carrionswarm" set spellIds[index] = 'ACcv' set deg[index] = deg[index-1] + 60.0 set index = 4 set spellorders[index] = "breathoffire" set spellIds[index] = 'ACbc' set deg[index] = deg[index-1] + 60.0 set index = 5 set spellorders[index] = "carrionswarm" set spellIds[index] = 'ACca' set deg[index] = deg[index-1] + 60.0 set index = 6 set spellorders[index] = "carrionswarm" set spellIds[index] = 'ACcv' set deg[index] = deg[index-1] + 60.0 set bj_forLoopAIndex = 1 set bj_forLoopAIndexEnd = noSpells loop exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd call CreateNUnitsAtLoc( 1, 'e002', GetOwningPlayer(GetOrderedUnit()), GetUnitLoc(GetOrderedUnit()), deg[bj_forLoopAIndex] ) call SetUnitPathing( GetLastCreatedUnit(), false ) call UnitAddAbilityBJ( spellIds[bj_forLoopAIndex], GetLastCreatedUnit() ) call IssuePointOrderLocBJ( GetLastCreatedUnit(), spellorders[bj_forLoopAIndex], PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 1.00, deg[bj_forLoopAIndex]) ) call RemoveUnit( GetLastCreatedUnit() ) set bj_forLoopAIndex = bj_forLoopAIndex + 1 endloop endfunction |
| 08-24-2003, 11:51 AM | #14 |
uhh... thanks but.. i have no flippin' idea wat that does and if i have to change it... i did see carrionswarm though and im not using any part of CS other than its missle art... really i am grateful its just i dont know how to implement it... other than copy and paste... =( |
| 08-24-2003, 04:44 PM | #15 | |
Quote:
The units have to have an ability in order to use it, even through triggers! Give 4 different unit types 4 different versions of breath of fire, then order them all to use breath of fire and they will use whatever custom BoF you gave them. Or you could use one unit type and use triggers to add abilities to the units. |
