- Joined
- Mar 16, 2008
- Messages
- 955
It's supposed to temporarly set weapon damage to 5000, then back to 'regular' however it seems to just keep increasing it by an interval of 5000. I'm puzzled.
This seems to work:
EDIT: I debugged and confirmed ugh_Warden_base_damage is being set correctly, the integer variable is being set correctly, but for some reason it's not setting the units damage back to that variable for some reason. ???
This seems to work:
-
Unit - Set Unit: Warden (NPC) 0054 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: 5000
-
Unit - Set Unit: Warden (NPC) 0054 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: Warden_base_damage
-
warden near corrupt
-
Events
-
Conditions
-
(Triggering unit) Equal to Warden (NPC) 0054 <gen>
-
warden_neutral Equal to False
-
-
Actions
-
Set VariableSet warden_neutral = True
-
Unit - Change ownership of Warden (NPC) 0054 <gen> to Neutral Passive and Retain color
-
Set VariableSet Warden_var = (Triggering unit)
-
Set VariableSet Warden_base_damage = (Unit: Warden (NPC) 0054 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b') at Index:1)
-
Unit - Set Warden (NPC) 0054 <gen> movement speed to 400.00
-
Countdown Timer - Pause warden_cor_atk_timer
-
Countdown Timer - Start warden_cor_atk_timer as a One-shot timer that will expire in 10.00 seconds
-
Unit - Set Unit: Warden (NPC) 0054 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: 5000
-
Custom script: set udg_Warden_Target = GetClosestUnitInGroup(GetUnitX(udg_Warden_var), GetUnitY(udg_Warden_var), udg_corrupted_player_buildings)
-
Unit - Order Warden (NPC) 0054 <gen> to Attack Warden_Target
-
-
-
corrupt building dies
-
Events
-
Unit - A unit owned by Player 1 (Red) Dies
-
Unit - A unit owned by Player 2 (Blue) Dies
-
Unit - A unit owned by Player 3 (Teal) Dies
-
Unit - A unit owned by Player 4 (Purple) Dies
-
Unit - A unit owned by Player 13 (Maroon) Dies
-
Unit - A unit owned by Player 14 (Navy) Dies
-
Unit - A unit owned by Player 15 (Turquoise) Dies
-
Unit - A unit owned by Player 16 (Violet) Dies
-
-
Conditions
-
(Level of Corrupted Class (hidden) for (Dying unit)) Equal to 1
-
-
Actions
-
Unit Group - Remove (Dying unit) from corrupted_player_buildings.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Killing unit) Equal to Warden (NPC) 0054 <gen>
-
-
Then - Actions
-
Sound - Play maive_corrupt_atk_sound[(Random integer number between 0 and 2)]
-
Countdown Timer - Pause warden_cor_atk_timer
-
Unit - Set Warden (NPC) 0054 <gen> movement speed to (Default movement speed of Warden (NPC) 0054 <gen>)
-
Unit - Set Unit: Warden (NPC) 0054 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: Warden_base_damage
-
Hero - Set Warden (NPC) 0054 <gen> Hero-level to ((Hero level of (Killing unit)) + 1), Show level-up graphics
-
Unit - Change ownership of Warden (NPC) 0054 <gen> to Player 5 (Yellow) and Retain color
-
Set VariableSet warden_neutral = False
-
-
Else - Actions
-
-
-
-
waden corrupt timer
-
Events
-
Time - warden_cor_atk_timer expires
-
-
Conditions
-
(Warden (NPC) 0054 <gen> is in (Units owned by Player 5 (Yellow).).) Equal to False
-
-
Actions
-
Countdown Timer - Pause warden_cor_atk_timer
-
Unit - Set Warden (NPC) 0054 <gen> movement speed to (Default movement speed of Warden (NPC) 0054 <gen>)
-
Unit - Set Unit: Warden (NPC) 0054 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: Warden_base_damage
-
Unit - Change ownership of Warden (NPC) 0054 <gen> to Player 5 (Yellow) and Retain color
-
Set VariableSet warden_neutral = False
-
-
EDIT: I debugged and confirmed ugh_Warden_base_damage is being set correctly, the integer variable is being set correctly, but for some reason it's not setting the units damage back to that variable for some reason. ???
Last edited: