Need help with trigger-based ability

Nathan0093

New Member
Reaction score
4
Im needing help once again.
Code:
Divine Blessing
    Events
        Unit - A unit Begins casting an ability
    Conditions
        And - All (Conditions) are true
            Conditions
                (Ability being cast) Equal to Divine Blessing 
                (Unit-type of (Casting unit)) Equal to Knight Lord
    Actions
        Unit - Add Max Life Bonus (Heavenly Warrior) to (Casting unit)
        Unit - Add Splash Damage Bonus  to (Casting unit)
        Unit - Add Splash Damage Bonus Target  to (Casting unit)
        Wait 60.00 game-time seconds
        Unit - Remove Splash Damage Bonus  from (Casting unit)
        Unit - Remove Splash Damage Bonus Target  from (Casting unit)
        Unit - Remove Max Life Bonus (Heavenly Warrior) from (Casting unit)
The thing with this trigger is that sometime the abilities are removed after 60 seconds sometime they aren't. I'm not using Avatar because i dont want the unit's size to increase. Any suggestion on how to fix this?
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
How about instead of a wait (waits are evil), start a timer for 60 seconds and then make a new trigger for the timer expiring that removes the stuff.

P.S. Instead of reviving a thread, make a new one.
 
Reaction score
107
Code:
Divine Blessing
    Events
        Unit - A unit Begins casting an ability
    Conditions
        And - All (Conditions) are true
            Conditions
                (Ability being cast) Equal to Divine Blessing 
                (Unit-type of (Casting unit)) Equal to Knight Lord
    Actions
        Unit - Add Max Life Bonus (Heavenly Warrior) to (Casting unit)
        Unit - Add Splash Damage Bonus  to (Casting unit)
        Unit - Add Splash Damage Bonus Target  to (Casting unit)
        Wait 60.00 game-time seconds
        Unit - Remove Splash Damage Bonus  from (Casting unit)
        Unit - Remove Splash Damage Bonus Target  from (Casting unit)
        Unit - Remove Max Life Bonus (Heavenly Warrior) from (Casting unit)
Code:
And - All (Conditions) are true
            Conditions
Is not needed since conditions are "and" by default.

If these are passive abilities add them to a spellbook and add it and disable, then remove it after the duration. This makes it how many lines less..

But that doesn't really make a difference, just change "casting unit" to "triggering unit" and it should work fine.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top