Two simple issues.

BarzahdX

Active Member
Reaction score
18
Issue one: It isn't really an issue, just a question--how do I set a condition to sense if the attacker has an ability set to auto-cast?

Issue two: Regarding the spell "Shockwave" I have a really weird bug, it has infinite distance, so it travels to the end of the map--but based on the angle and your proximation of where you cast it, it always sends the shockwave to the nearest of one of the four corners of the map. I've never seen anything like this, will using the Carrion Swarm ability fix it? There are no triggers involved with this spell.. Please explain.
 

cleeezzz

The Undead Ranger.
Reaction score
268
2. carrion swarm is the same i believe, ive had a problem like this too, i just made distance a long 3000 but not infinite
 

FireBladesX

Eating my wings!
Reaction score
123
Question one:

There's an event, unit issues an order with no target.

If the issued order is equal to the ID string of the autocast ability (check the object editor for this one), add that unit to a unit group.

If it's on, then add to the group. Off, remove from the group.

The second trigger checks if they're in the group or not.
 

BarzahdX

Active Member
Reaction score
18
I'm confused, will you give me an example? I'll try fiddling with it for now...
 

FireBladesX

Eating my wings!
Reaction score
123
Here, I'll write one for faerie fire.
Note, the string is in the Object Editor under "Text - Order String - (De)activate".

Code:
FaerieFire
    Events
        Unit - A unit Is issued an order with no target
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (String((Issued order))) Equal to faeriefireon
            Then - Actions
                Unit Group - Add (Triggering unit) to faerieGroup
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (String((Issued order))) Equal to faeriefireoff
                    Then - Actions
                        Unit Group - Remove (Triggering unit) from faerieGroup
                    Else - Actions

Then, you can run the condition if the unit is in a unit group (boolean comparison) in a different trigger.


Also, clear the unit from the group if it dies.
 

BarzahdX

Active Member
Reaction score
18
Here, I'll write one for faerie fire.
Note, the string is in the Object Editor under "Text - Order String - (De)activate".

Code:
FaerieFire
    Events
        Unit - A unit Is issued an order with no target
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (String((Issued order))) Equal to faeriefireon
            Then - Actions
                Unit Group - Add (Triggering unit) to faerieGroup
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (String((Issued order))) Equal to faeriefireoff
                    Then - Actions
                        Unit Group - Remove (Triggering unit) from faerieGroup
                    Else - Actions

Then, you can run the condition if the unit is in a unit group (boolean comparison) in a different trigger.


Also, clear the unit from the group if it dies.

I see, thank you! Now for the sake of knowledge--is setting the event to issue with no target the only way to sense if it's on? What if, say you have searing arrows is set to auto-cast, and you right click an enemy, so that's an issue with a target, will the trigger no longer function?

OH SNAP! The (issued order) means the event is you right-clicking the spell in the first place? If so, than my question has already been answered, and thank you for your help. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top