- Joined
- Sep 3, 2006
- Messages
- 940
I would like to swap a Hero ability for another one when it turns night. I have a trigger that removes and adds abilities, but it only removes and adds the ability, not the one that you can learn, and that makes you able to have both abilities at once:
+rep will be given!
-
D and WS D to N
-
Events
- Game - The in-game time of day becomes Greater than 18.00
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Werewolf
-
Then - Actions
- Game Cache - Store (Level of Dodge for (Picked unit)) as DodgeAbility of Werewolf in GameCache
- Unit - Remove Dodge from (Picked unit)
- Unit - Add Weak Spot to (Picked unit)
- Unit - Set level of Weak Spot for (Picked unit) to (Load WeakSpotAbility of Werewolf from GameCache)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
-
D and WS N to D
-
Events
- Game - The in-game time of day becomes Less than 18.00
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Werewolf
-
Then - Actions
- Game Cache - Store (Level of Weak Spot for (Picked unit)) as WeakSpotAbility of Werewolf in GameCache
- Unit - Remove Weak Spot from (Picked unit)
- Unit - Add Dodge to (Picked unit)
- Unit - Set level of Dodge for (Picked unit) to (Load DodgeAbility of Werewolf from GameCache)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
+rep will be given!