- Joined
- Aug 12, 2008
- Messages
- 350
The following spell lags for the first time the hero kills a unit. It only smooth after that. I'm not sure how to preload as said by so many spell makers to ensure the spell goes smooth.
Here is the trigger,
Here is the trigger,
-
Strength and Honor
-
Events
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ((Triggering unit) has buff Strength and Honor ) Equal to True
- ((Killing unit) has buff Strength and Honor ) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Killing unit) has buff Strength and Honor ) Equal to True
-
Then - Actions
- Set tempUnit = (Killing unit)
- Set SH_level = (Level of Strength and Honor for tempUnit)
- Custom script: set udg_O_key = GetHandleId (udg_tempUnit)
- Set SH_stackMax = (5 x SH_level)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Strength and Honor for tempUnit) Equal to 0
-
Then - Actions
- Unit - Add Strength and Honor to tempUnit
- Else - Actions
-
If - Conditions
- Set tempInteger = (Load 1 of SH_key from Hashtable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- tempInteger Less than SH_stackMax
-
Then - Actions
- Set SH_stack = (tempInteger + 1)
- Unit - Set level of Strength and Honor for tempUnit to SH_stack
- Hashtable - Save SH_stack as 1 of SH_key in Hashtable
- Else - Actions
-
If - Conditions
-
Else - Actions
- Set tempUnit = (Triggering unit)
- Custom script: set udg_O_key = GetHandleId (udg_tempUnit)
- Set tempInteger = (Load 1 of SH_key from Hashtable)
- Set SH_stack = (tempInteger / 2)
- Unit - Set level of Strength and Honor for tempUnit to SH_stack
- Hashtable - Save SH_stack as 1 of SH_key in Hashtable
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events