• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Trigger copies another despite having different numbers

Status
Not open for further replies.
Level 28
Joined
Apr 6, 2010
Messages
3,107
I have a problem with one trigger working as intended, but the other which should have an opposite effect instead does the same thing.

The idea is that the map is divided into several levels, and units can only move between levels by using the ascend/descend abilities.

For some reason, the Ascend trigger works fine, but using Descend is the same as Ascend: the unit is moved up instead of down.

Here are the triggers:

  • ascend
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ascend
    • Actions
      • Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by (0.00, 8000.00))
  • descend
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Descend
    • Actions
      • Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by (0.00, -8000.00))
Both abilities are based on Channel, could that have something to do with it?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,570
Be careful when using Channel!

Quoting DrSuperGood:
"The cast type channel uses must match the cast type of the ability that the order string comes from. If it does not match then AI and trigger issued orders will not work to cast both the channelled ability and any ability derived from the ability the order string comes from. This will not affect player casting of the abilities, only AI and trigger casting.

As an example, if you base a channel ability on the order string for thunderclap and then turn it into a unit target ability then this will break trigger issued orders for both the channel ability and any ability derived from thunderclap. Thunderclap is an instant cast ability so channel has mutated its target type breaking it internally."

So as long as your Channel abilities have matching cast types it won't mess with your AI/Triggered Orders. It may not even be a concern depending on how your map works.

But just to be safe I would use Base Order Ids like Thunderclap, Warstomp, Taunt, etc... since those are Instant abilities.
 
Last edited:
Status
Not open for further replies.
Top