Warcraft III resources & community, 2003–2006 · archived

Spell help

22 posts
#16
ok so i havent tried to acctually do this till now...n e ways heres wat i got...

Trigger1

Blade massacre
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Blade Massacre
(Level of Blade Massacre for (Triggering unit)) Equal to 1
Actions
Region - Center Massacre Region <gen> on (Position of (Triggering unit))
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit - Create 1 Blade massacre dummy for (Owner of (Triggering unit)) at ((Center of Massacre Region <gen>) offset by 200.00 towards (((Real((Integer A))) x 36.00) + 0.00) degrees) facing (Target point of ability being cast)
Animation - Change (Last created unit)'s vertex coloring to (50.00%, 75.00%, 25.00%) with 80.00% transparency
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Orc Blademaster - Bladestorm
Unit Group - Add all units of (Units of type Blade massacre dummy) to Blademassacregroup
Countdown Timer - Create a timer window for BladeMassacreTime with title <Empty String>
Countdown Timer - Show (Last created timer window)
Countdown Timer - Start BladeMassacreTime as a Repeating timer that will expire in 0.50 seconds


Trigger2

Blade massacre test
Events
Time - BladeMassacreTime expires
Conditions
Actions
Set Blademassacre_blademaster = (Unit-type of (Triggering unit))
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit Group - Pick every unit in Blademassacregroup and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Triggering unit)) offset by 300.00 towards ((Angle from (Position of (Picked unit)) to (Position of (Triggering unit))) + 3.00) degrees)


now the problem is that they dont move...and when the ability is activated, after .5 secs they are removed from the game somehow..what should i change/do to make this work??
#17
UP still need help...
#18

Blade massacre test 
Events 
Time - BladeMassacreTime expires 
Conditions 
Actions 
Set Blademassacre_blademaster = (Unit-type of (Triggering unit)) 
For each (Integer A) from 1 to 10, do (Actions) 
Loop - Actions 
Unit Group - Pick every unit in Blademassacregroup and do (Actions) 
Loop - Actions 
Unit - Move (Picked unit) instantly to ((Position of (Triggering unit)) offset by 300.00 towards ((Angle from (Position of (Picked unit)) to (Position of (Triggering unit))) + 3.00) degrees) 

Thats what you currently have, now this is it rewritten as i see it should be

Blade massacre test 
Events 
Time - BladeMassacreTime expires 
Conditions 
Actions 
Set Blademassacre_blademaster = (Unit-type of (Triggering unit)) 
Unit Group - Pick every unit in Blademassacregroup and do (Actions) 
Loop - Actions 
Unit - Move (Picked unit) instantly to ((Position of (**Hero who spins em**)) offset by 300.00 towards ((Angle from (Position of (Picked unit)) to (Position of (**Hero who Spins Em**))) + 3.00) degrees)
#19
ok hers wat i put..

Code

Blade massacre test
Events
Time - BladeMassacreTime expires
Conditions
Actions
Set Blademassacre_blademaster = (Unit-type of (Triggering unit))
Unit Group - Pick every unit in Blademassacregroup and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Triggering unit)) offset by 300.00 towards ((Angle from (Position of (Picked unit)) to (Position of (Triggering unit))) + 3.00) degrees)

but still when i test it out it doesnt work, the timer stops after the first .5 seconds. (the triggering unit was set to be the hero caster here

Set Blademassacre_blademaster = (Unit-type of (Triggering unit))

do u think that this is the problem??
#20
Yeah, um, have a variable for the casting hero, cut out triggering unit, cause in that trigger triggering unit refers to nothing, since it isnt triggered by a unit action
#21
ok so do u think i should change this

Set Blademassacre_blademaster = (Unit-type of (Triggering unit))

to

Set Blademassacre_blademaster = (Unit-type of (Casting unit))

cause Blademassacre_blademaster is already set to the hero with the spell.
#22
Then move the units round that variable, the Blademassacre_thingy