- Joined
- Mar 1, 2013
- Messages
- 555
First of all, I feel bad for posting so many threads. I'll try my best not to make a new thread for the next 3 days.
on topic: I created a custom spell based on shadow strike. For every second the target loses 75 HP, it takes 25 extra damage. lasts 8 seconds. (Ignore HashVoid, thats a diffirent spell)
on topic: I created a custom spell based on shadow strike. For every second the target loses 75 HP, it takes 25 extra damage. lasts 8 seconds. (Ignore HashVoid, thats a diffirent spell)
-
Varibles
-
Events
- Map initialization
- Conditions
-
Actions
- Hashtable - Create a hashtable
- Set HashVoid = (Last created hashtable)
- Hashtable - Create a hashtable
- Set HashDevolate = (Last created hashtable)
-
Events
-
Devolate spell
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Devolate
-
Actions
- Set DevolateCaster = (Casting unit)
- -------- Give time --------
- Hashtable - Save 8 as 0 of (Key (Target unit of ability being cast)) in HashDevolate
- -------- Save health --------
- Hashtable - Save (Integer((Life of (Target unit of ability being cast)))) as 1 of (Key (Target unit of ability being cast)) in HashDevolate
- Unit Group - Add (Target unit of ability being cast) to DevolateGroup
-
Events
-
Devolate loop
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in DevolateGroup and do (Actions)
-
Loop - Actions
- -------- Load time --------
- Set Devolate_remaining = (Load 0 of (Key (Picked unit)) from HashDevolate)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Devolate_remaining Greater than 0
-
Then - Actions
- -------- Load life --------
- Set DevolateFactor = (Load 1 of (Key (Picked unit)) from HashDevolate)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer((Life of (Picked unit)))) Less than or equal to (DevolateFactor - 75)
-
Then - Actions
- -------- Save new life --------
- Hashtable - Save (Integer((Life of (Picked unit)))) as 1 of (Key (Target unit of ability being cast)) in HashDevolate
- Unit - Cause DevolateCaster to damage (Picked unit), dealing 25.00 damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the orign of (Picked unit) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
-
Else - Actions
- Unit Group - Remove (Picked unit) from DevolateGroup
- Hashtable - Clear all child hashtables of child (Key (Picked unit)) in HashDevolate
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in DevolateGroup and do (Actions)
-
Events