• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] problems with this spell-trigger

Status
Not open for further replies.
Level 30
Joined
Sep 2, 2007
Messages
3,723
okey the final purpose is not to kill as in the trigger, its just for testing.
the spell, icy fog, is warstomp
and the buff, frozen(pause), is stun(pause)

why doesn't this trigger work? and please give me the right solution.
triggerhelpme-2.jpg
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Hm, I dont really see why it wouldnt work, but a way which would work the same way would be the following:

  • Triggah
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Icy Fog
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) has buff Frozen (pause)) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
As second, if that wouldn't work, some spells isn't triggered by "finish casting". What happends if you try "starts the effect"?

Third, if that wouldn't work, sometimes the buffs arent added exactly after finishing casting an ability. You could try just for checking, to wait 1 second and then do the actions, but then however it will not be good for mui

/regards
 
Level 17
Joined
Jan 21, 2007
Messages
2,014
I think i've solved it (worked for me atleast). The buff doesn't appear directly when the ability is casted, but slightly after. For some reason the wait didn't work with your version, so i remade the whole thing.

20080623_20.55.38_War Stomp.jpg


Sorry for using screenie, but i haaven't learned the trigger tag 100% yet, and it messed up totally:bored:

Oh, and i used remove instead of kill for some reason. That has nothing to do with it.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
To make it MUI remove Set cast = (casting unit) and then instead of cast use Triggering Unit.
 
Level 30
Joined
Sep 2, 2007
Messages
3,723
I think i've solved it (worked for me atleast). The buff doesn't appear directly when the ability is casted, but slightly after. For some reason the wait didn't work with your version, so i remade the whole thing.

20080623_20.55.38_War%20Stomp.jpg


Sorry for using screenie, but i haaven't learned the trigger tag 100% yet, and it messed up totally:bored:

Oh, and i used remove instead of kill for some reason. That has nothing to do with it.
doesnt work
 
Level 9
Joined
May 27, 2006
Messages
498
As far as i know, Triggering unit is mui itself, you dont need to set it to variable...

Im not sure about that anyways. I got that idea after testing my spell, when i used this simple trigger...
  • Events:
    • Unit - A unit dies
  • Conditions:
  • Actions:
    • Wait 30.00 seconds
    • Unit - Create 1 (Unit-type of (Triggering unit)) at (Position of (Triggering unit)) facing blah
...To respawn creeps. It worked perfectly, respawning the right unit at the right place. Ex. a Footman at the location of recently killed Footman. And i was beating down tons of units in the time of 30 seconds.
Not sure if this proof is good enough though :p I would be very grateful if someone told me if i am right here.
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
DevineArmy. As I said before, and as terradont pointed out as well, the buff doesn't appear instantly. A sidenote is that finish casting an ability can bug the trigger if its interrupted, but still the effects take place. And raft is right as well...

The trigger Terradont did should work. I made a similiar one (like an exact copy) and it worked as well...

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp (Neutral Hostile 1)
    • Actions
      • Game - Display to (All players) the text: Debug!
      • Wait 0.10 game-time seconds
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) has buff Stunned (Pause)) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
          • Game - Display to (All players) the text: Inner Loop
If the help we suggested didn't work, perhaps you added the wrong buff... I see nothing else which could be wrong.
 
Level 30
Joined
Sep 2, 2007
Messages
3,723
DevineArmy. As I said before, and as terradont pointed out as well, the buff doesn't appear instantly. A sidenote is that finish casting an ability can bug the trigger if its interrupted, but still the effects take place. And raft is right as well...

The trigger Terradont did should work. I made a similiar one (like an exact copy) and it worked as well...

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp (Neutral Hostile 1)
    • Actions
      • Game - Display to (All players) the text: Debug!
      • Wait 0.10 game-time seconds
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) has buff Stunned (Pause)) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
          • Game - Display to (All players) the text: Inner Loop
If the help we suggested didn't work, perhaps you added the wrong buff... I see nothing else which could be wrong.
i can see the message but the units wont die
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
You mean, you see the "inner loop" but the units arent dying?

Edit: are you using this in a map where you coded something else? Since it worked perfectly in a demo map, ehm Ill attach it, im sure you did nothing wrong though
 

Attachments

  • Test.w3x
    16.9 KB · Views: 38
Last edited:
Level 30
Joined
Sep 2, 2007
Messages
3,723
yay i solved the problem
  • CSFL
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Icy Fog
    • Actions
      • Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit)) matching ((((Triggering unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
the spell has 250 range :)) so its right
 
Status
Not open for further replies.
Top