keychup
Active Member
- Reaction score
- 34
Effect: When A unit casts this spell a buff will be placed on him and he will turn red. when the buff is removed his color turns back to normal over 1 second. While Buff is placed on him his atkspd and movspd are doubled and blocks incoming damage by ½
Trigger 1: This marks the unit to be colored
Trigger 2: This makes a hashtable
Trigger 3: This colors the units
Trigger 4: Trigger 3 runs this trigger. this trigger changes the modifications to the unit
Trigger 1: This marks the unit to be colored
Trigger:
- ragingbull mark
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to E - Raging Bull
- Actions
- Unit - Add E - Raging Bull (Unit Marker) to (Triggering unit)
- Events
Trigger 2: This makes a hashtable
Trigger:
- color hashtable
- Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
- Actions
- Hashtable - Create a hashtable
- Set zz_color_hash = (Last created hashtable)
- Events
Trigger 3: This colors the units
Trigger:
- color effect
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set zz_UnitGroupA = (Units in (Playable map area))
- Unit Group - Pick every unit in zz_UnitGroupA and do (Actions)
- Loop - Actions
- Set zz_color_unit = (Load 0 of (Key (Picked unit)) in zz_color_hash)
- Set zz_color_red_hue = (Load 1 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_red_rate = (Load 2 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_green_hue = (Load 3 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_green_rate = (Load 4 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_blue_hue = (Load 5 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_blue_rate = (Load 6 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_transp_hue = (Load 7 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_transp_rate = (Load 8 of (Key (Picked unit)) from zz_color_hash)
- Set zz_color_red_hue = (zz_color_red_hue + zz_color_red_rate)
- Hashtable - Save zz_color_red_hue as 1 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_green_hue = (zz_color_green_hue + zz_color_green_rate)
- Hashtable - Save zz_color_green_hue as 3 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_blue_hue = (zz_color_blue_hue + zz_color_blue_rate)
- Hashtable - Save zz_color_blue_hue as 5 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_transp_hue = (zz_color_transp_hue + zz_color_transp_rate)
- Hashtable - Save zz_color_transp_hue as 7 of (Key (Picked unit)) in zz_color_hash
- Animation - Change zz_color_unit's vertex coloring to (zz_color_red_hue%, zz_color_green_hue%, zz_color_green_hue%) with zz_color_transp_hue% transparency
- -------- Added Effects --------
- Trigger - Run ragingbull effect <gen> (checking conditions)
- Loop - Actions
- Custom script: call DestroyGroup (udg_zz_UnitGroupA)
- Events
Trigger 4: Trigger 3 runs this trigger. this trigger changes the modifications to the unit
Trigger:
- ragingbull effect
- Events
- Conditions
- Actions
- Set zz_UnitGroupA = (Units in (Playable map area) matching ((Level of E - Raging Bull (Unit Marker) for (Matching unit)) Greater than 0))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in zz_UnitGroupA) Greater than 0
- Then - Actions
- Unit Group - Pick every unit in zz_UnitGroupA and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) has buff Raging Bull) Equal to True
- Then - Actions
- Set zz_color_unit = (Picked unit)
- Hashtable - Save Handle Ofzz_color_unit as 0 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_red_hue = 100.00
- Hashtable - Save zz_color_red_hue as 1 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_red_rate = 0.00
- Hashtable - Save zz_color_red_rate as 2 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_green_hue = 0.00
- Hashtable - Save zz_color_green_hue as 3 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_green_rate = 0.00
- Hashtable - Save zz_color_green_rate as 4 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_blue_hue = 0.00
- Hashtable - Save zz_color_blue_hue as 5 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_blue_rate = 0.00
- Hashtable - Save zz_color_blue_rate as 6 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_transp_hue = 0.00
- Hashtable - Save zz_color_transp_hue as 7 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_transp_rate = 0.00
- Hashtable - Save zz_color_transp_rate as 8 of (Key (Picked unit)) in zz_color_hash
- Else - Actions
- Set zz_color_unit = (Picked unit)
- Hashtable - Save Handle Ofzz_color_unit as 0 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_red_hue = 100.00
- Hashtable - Save zz_color_red_hue as 1 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_red_rate = 0.00
- Hashtable - Save zz_color_red_rate as 2 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_green_hue = 0.00
- Hashtable - Save zz_color_green_hue as 3 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_green_rate = 3.33
- Hashtable - Save zz_color_green_rate as 4 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_blue_hue = 0.00
- Hashtable - Save zz_color_blue_hue as 5 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_blue_rate = 3.33
- Hashtable - Save zz_color_blue_rate as 6 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_transp_hue = 0.00
- Hashtable - Save zz_color_transp_hue as 7 of (Key (Picked unit)) in zz_color_hash
- Set zz_color_transp_rate = 0.00
- Hashtable - Save zz_color_transp_rate as 8 of (Key (Picked unit)) in zz_color_hash
- Unit - Remove E - Raging Bull (Unit Marker) from (Picked unit)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in zz_UnitGroupA and do (Actions)
- Else - Actions
- If - Conditions
- Custom script: call DestroyGroup (udg_zz_UnitGroupA)