bYo
New Member
- Reaction score
- 5
Hi guys, I would be grateful if any of you could help me out on this one. I have a move called Stealth Attack, which is based off the ability Orc > Windwalk. The basic idea is that the unit goes invisible for a certain amount of time (20, 40 and 60 seconds for each level) and gains bonus agility until they attack a target or the time runs out. However, they retain the agility for 10s afterwards, before resetting back to normal.
I triggered all this and it was working perfectly fine until I spotted a bug which allowed you to permanently gain agility. In fixing this, now suddenly the agility gain refuses to work. I've got four triggers for this skill. All triggers except the first are initially off.
Initiating Trigger
Agility Gain Trigger
Attack Removal Trigger
Time Elapsed Trigger
Thumbs up if you've managed to read through this wall of triggering. Would be grateful for any help, but thanks in advance because I know how good you guys are .
I triggered all this and it was working perfectly fine until I spotted a bug which allowed you to permanently gain agility. In fixing this, now suddenly the agility gain refuses to work. I've got four triggers for this skill. All triggers except the first are initially off.
Initiating Trigger
Trigger:
- Stealth Attack Initiate
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Stealth Attack2
- Actions
- Set Rogue_Agi_Original = (Agility of (Triggering unit) (Exclude bonuses))
- Trigger - Turn on Stealth Attack Removal <gen>
- Trigger - Turn on Stealth Attack Timer <gen>
- Unit Group - Pick every unit in (Units of type Rogue) and do (Actions)
- Loop - Actions
- Floating Text - Create floating text that reads Melding... above (Casting unit) with Z offset 2.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
- Loop - Actions
- Trigger - Run Stealth Attack Timer <gen> (checking conditions)
- Wait 2.00 seconds
- Trigger - Turn on Stealth Attack Damage <gen>
- Events
Agility Gain Trigger
Trigger:
- Stealth Attack Damage
- Events
- Time - Every 2.00 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in (Units of type Rogue) and do (Actions)
- Loop - Actions
- Hero - Modify Agility of (Picked unit): Add ((Level of Stealth Attack2 for (Picked unit)) x 10)
- Floating Text - Create floating text that reads (String(((Level of Stealth Attack2 for (Picked unit)) x 10))) above (Picked unit) with Z offset 2.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
- Loop - Actions
- Unit Group - Pick every unit in (Units of type Rogue) and do (Actions)
- Events
Attack Removal Trigger
Trigger:
- Stealth Attack Removal
- Events
- Unit - A unit Is attacked
- Conditions
- (Unit-type of (Attacking unit)) Equal to Rogue
- Actions
- Unit - Remove Stealth Attack2 from (Attacking unit)
- Trigger - Turn off Stealth Attack Damage <gen>
- Trigger - Turn off Stealth Attack Timer <gen>
- Wait 10.00 seconds
- Unit Group - Pick every unit in (Units of type Rogue) and do (Actions)
- Loop - Actions
- Hero - Modify Agility of (Attacking unit): Set to Rogue_Agi_Original
- Unit - Add Stealth Attack2 to (Attacking unit)
- Loop - Actions
- Trigger - Turn off (This trigger)
- Events
Time Elapsed Trigger
Trigger:
- Stealth Attack Timer
- Events
- Conditions
- Actions
- Wait ((Real((Level of Stealth Attack2 for (Picked unit)))) x 20.00) seconds
- Unit Group - Pick every unit in (Units of type Rogue) and do (Actions)
- Loop - Actions
- Hero - Modify Agility of (Picked unit): Set to Rogue_Agi_Original
- Loop - Actions
- Trigger - Turn off Stealth Attack Damage <gen>
- Trigger - Turn off Stealth Attack Removal <gen>
- Trigger - Turn off (This trigger)
Thumbs up if you've managed to read through this wall of triggering. Would be grateful for any help, but thanks in advance because I know how good you guys are .