Boolean Reset on Transport

futeki

Active Member
Reaction score
4
So here's a problem I'm having, I've made a custom ability based off defend.

I then created this trigger:
Trigger:
  • On or Off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Owner of (Triggering unit)) Equal to (Owner of SpecialUnit <gen>)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(defend))
        • Then - Actions
          • Set BoolActive = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(undefend))
        • Then - Actions
          • Set BoolActive = False
        • Else - Actions


In another trigger I check if that value is true or not:

Trigger:
  • Conditions
    • (Owner of (Triggering unit)) Equal to (Owner of SpecialUnit <gen>)
    • BoolActive Equal to True

And all works fine, until the casting unit (unit with defend) enters a transport. The moment they enter a transport something is happening that stops the second trigger from working. Should I be using another ability other than Defend to base it off of?

Any ideas?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
might be that units loaded into transporters are ordered undefend. and of course you can use other abilitys. immolation of the demon hunter for example.
 

futeki

Active Member
Reaction score
4
might be that units loaded into transporters are ordered undefend. and of course you can use other abilitys. immolation of the demon hunter for example.

Tried immolation, does the same thing. Hmm... Any other ideas?
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Add a buff and check for buff when using transport? Removing buff might be hard...
Or an aura that only targets self (Remove ability/aura and no more buff)
 

futeki

Active Member
Reaction score
4
Add a buff and check for buff when using transport? Removing buff might be hard...
Or an aura that only targets self (Remove ability/aura and no more buff)

How would you trigger that with an event?

Trigger:
  • Events
    • Unit - A unit Is loaded into a transport

This event causes my screen to screw up and blizzard's models to disappear. This might be one of those unsolvable issues.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top