Need help with Triggers for a spell(Bleach RPG map)

Level 2
Joined
Feb 5, 2008
Messages
7
Trigger Help (Remove a stat when mana reaches 0)

Heya, im making a RPG bleach map and i need some help with a triggers to a spell. The spell is called Bankai and will incress triggering units agi with 5 * lvl but also drain mana every sec. So i changed the Immoltion spell and made trigger for the agi part... Everything is working as it should except for when the triggering units mana reaches 0 then it just lose the buff(Mana drain) but still keeps the agi and stuff. So i need help to solve that. Here is my triggers:
  • Bankai
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Custom script: set udg_TempBool = GetIssuedOrderId() == 852177
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Bankai) Equal to False
          • TempBool Equal to True
        • Then - Actions
          • Camera - Shake the camera for (Triggering player) with magnitude 10.00
          • Floating Text - Create floating text that reads BANKAI! above (Triggering unit) with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Unit - Change color of (Triggering unit) to Black
          • Hero - Modify Agility of (Triggering unit): Add ((Level of (Triggering unit)) x 5)
          • Set BankaiIchigo = (5 x (Level of (Triggering unit)))
          • Unit - Add Hollow Transformation to (Triggering unit)
          • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in ((Mana of (Triggering unit)) / 15.00) seconds
          • Wait 3.00 seconds
          • Camera - Stop swaying/shaking the camera for (Triggering player)
          • Floating Text - Destroy (Last created floating text)
        • Else - Actions
          • Custom script: set udg_TempBool = GetIssuedOrderId() == 852178
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering unit) has buff Bankai) Equal to True
              • TempBool Equal to True
            • Then - Actions
              • Hero - Modify Agility of (Triggering unit): Subtract BankaiIchigo
              • Unit - Remove Hollow Transformation from (Triggering unit)
              • Unit - Change color of (Triggering unit) to (Color of (Matching player))
            • Else - Actions
 
Last edited:
Level 2
Joined
Feb 5, 2008
Messages
7
Thanks ill try that :grin:

EDIT:
What event would u use in the 2nd trigger ?

Do NOT double-post. Use the Edit Post button.
~Posts Merged
 
Last edited by a moderator:
Top