- Joined
- Aug 28, 2005
- Messages
- 271
I've created a spell which does damage depending on how long have the target stayed not moving. For every second it does 100 damage(3 seconds 300 dmage and so on).The damage is amplified after the target moves(I detect this with very small region which i place on the position on tha terget at the begining of the spell.)If the target stays more than 5 seconds without moving the spell is cancelled. Increasing the level of the ability increase the possible max damage. The problem is that the ability is not working at all. I think that the problem is that the region is not placed on the target's
position(it is preplaced somewhere in the trees) Here are the triggers:
The first starts the timer which detects the time and initializes the spell
The timer
position(it is preplaced somewhere in the trees) Here are the triggers:
The first starts the timer which detects the time and initializes the spell
-
soul rip time init
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Soul Rip
-
Actions
- Set soulriptarget = (Target unit of ability being cast)
- Set soulriptimer = 0
- Trigger - Turn on soul rip timer incr <gen>
- Region - Center soul rip place <gen> on (Position of soulriptarget)
- Wait 7.00 game-time seconds
- Set soulriptimer = 600
- Trigger - Turn off soul rip timer incr <gen>
-
Events
The timer
-
soul rip timer incr
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set soulriptimer = (soulriptimer + 1)
-
Events
-
soul rip
-
Events
- Unit - A unit leaves soul rip place <gen>
-
Conditions
- (Leaving unit) Equal to soulriptarget
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- soulriptimer Equal to 0
-
Then - Actions
- Unit Group - Pick every unit in (Units of type Forest Witch) and do (Unit - Cause (Picked unit) to damage soulriptarget, dealing 100.00 damage of attack type Spells and damage type Normal)
- Special Effect - Create a special effect attached to the overhead of soulriptarget using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
- Wait 6.00 game-time seconds
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- soulriptimer Less than 6
-
Then - Actions
- Unit Group - Pick every unit in (Units of type Forest Witch) and do (If (soulriptimer Less than or equal to ((Level of Soul Rip for (Picked unit)) + 1)) then do (Unit - Cause (Picked unit) to damage soulriptarget, dealing (100.00 x (Real(soulriptimer))) damage of attack type Spells and damage type Normal) else do (Unit - Cau
- Special Effect - Create a special effect attached to the overhead of soulriptarget using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
- Wait 6.00 game-time seconds
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Region - Center soul rip place <gen> on (Point(-900.00, -1900.00))
- Set soulriptarget = No unit
- Set soulriptimer = 600
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events