• 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.

Skip Remaining Actions, another question, and some other problem

Status
Not open for further replies.
Level 8
Joined
Jul 18, 2010
Messages
332
Its probably not possible but is it possible to skip the remaining actions from another trigger?

Another question:

What's more efficient? Multiple triggers or just putting all the actions from those triggers into one and just add some conditions?

Here's the other problem:

I have this "tornado" that will move from the top to the bottom of the map periodically. I switched from using periodic events to just ordering the unit to move from point to point cause I think it's better. The problem is that it doesn't move and it just stays in one place.

I've already check if the unit can move and it can. I already checked if I have declared the variables, and I have. I hope you understand the triggers.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • dungeonnumber Equal to 13
    • Then - Actions
      • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal facing 90.00 degrees
      • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
      • Set portal1 = (Last created unit)
      • Animation - Play (Last created unit)'s death animation
      • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal_Copy_3 facing 270.00 degrees
      • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
      • Set portal2 = (Last created unit)
      • Animation - Play (Last created unit)'s death animation
      • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal_Copy facing 270.00 degrees
      • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
      • Set portal3 = (Last created unit)
      • Animation - Play (Last created unit)'s death animation
      • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal_Copy_2 facing 90.00 degrees
      • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
      • Set portal4 = (Last created unit)
      • Animation - Play (Last created unit)'s death animation
      • Unit - Create 1 Sand Tornado (Ra Canyon) for Neutral Hostile at talinportal_Copy_3 facing 270.00 degrees
      • Set talin = (Last created unit)
      • Unit - Add Talin to (Last created unit)
      • Unit - Unpause talin
      • Unit - Order talin to Right-Click talinportal_Copy_2
      • Unit - Order talin to Move To talinportal_Copy_2
      • Trigger - Turn on under hammer talin <gen>
      • Trigger - Turn on under hammer talin Copy 2 <gen>
      • Trigger - Turn on under hammer talin Copy 3 Copy <gen>
      • Trigger - Turn on under hammer talin Copy Copy <gen>
    • Else - Actions
  • under hammer talin
    • Events
      • Unit - A unit enters Region 133 Copy 5 <gen>
    • Conditions
      • (Entering unit) Equal to talin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • dungeonnumber Less than 15
        • Then - Actions
          • Animation - Play portal3's death animation
          • Animation - Play portal1's birth animation
          • Sound - Play TornadoLoop <gen> at 100.00% volume, attached to talin
        • Else - Actions
          • Animation - Play portal3's birth animation
          • Animation - Play portal1's death animation
          • Sound - Play MeatWagonYes1 <gen> at 100.00% volume, attached to talin
  • under hammer talin Copy 2
    • Events
      • Unit - A unit enters Region 133 Copy <gen>
    • Conditions
      • (Entering unit) Equal to talin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • dungeonnumber Less than 15
        • Then - Actions
          • Sound - Play TornadoLoop <gen> at 100.00% volume, attached to talin
          • Animation - Play portal4's birth animation
          • Animation - Play portal2's death animation
        • Else - Actions
          • Animation - Play portal4's death animation
          • Animation - Play portal2's birth animation
          • Sound - Play MeatWagonYes1 <gen> at 100.00% volume, attached to talin
  • under hammer talin Copy 3 Copy
    • Events
      • Unit - A unit enters Region 133 Copy 4 <gen>
    • Conditions
      • (Entering unit) Equal to talin
    • Actions
      • Unit - Unpause talin
      • Sound - Play TornadoLoop <gen> at 100.00% volume, attached to talin
      • Unit - Move talin instantly to talinportal_Copy_3, facing 270.00 degrees
      • Animation - Play portal1's death animation
      • Animation - Play portal2's birth animation
      • Wait 0.03 seconds
      • Unit - Order talin to Move To talinportal_Copy_2
  • under hammer talin Copy Copy
    • Events
      • Unit - A unit enters Region 133 Copy 3 <gen>
    • Conditions
      • (Entering unit) Equal to talin
    • Actions
      • Unit - Unpause talin
      • Sound - Play TornadoLoop <gen> at 100.00% volume, attached to talin
      • Unit - Move talin instantly to talinportal_Copy, facing 270.00 degrees
      • Animation - Play portal4's death animation
      • Animation - Play portal3's birth animation
      • Wait 0.03 seconds
      • Unit - Order talin to Move To talinportal
 
You can not skip the remaining actions of another trigger - simply because there is no "another trigger" running at the same time. WC3 does only process one trigger at a time.
If there's a wait in a trigger, it halts execution until the time is over and all other triggers that have been running during that time are also executed/halted.
 
Level 8
Joined
Jul 18, 2010
Messages
332
You've seen my map, Zwiebelchen. I was thinking of combining all of these triggers of mine cause they all have the same purpose but just different entries and stuff.

But I'm afraid if I execute that one trigger, a huge lag spike might occur.

There are 21 of them so that would be 21 conditions.
 
You've seen my map, Zwiebelchen. I was thinking of combining all of these triggers of mine cause they all have the same purpose but just different entries and stuff.

But I'm afraid if I execute that one trigger, a huge lag spike might occur.

There are 21 of them so that would be 21 conditions.
That's fine. You won't notice any difference ingame.
 
Level 8
Joined
Jul 18, 2010
Messages
332
I'm not understanding your english again.

It's in the first trigger. Do you mean the unit variable "talin", or the talin point variables?
If you mean the point variables, they are already declared and I'm sure of it.

The wait here doesn't matter for me, whether they are accurate or not. And I already know they're not accurate but that doesn't matter for me, so don't worry about that.
 
can u show this full trigger
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • dungeonnumber Equal to 13
  • Then - Actions
  • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal facing 90.00 degrees
  • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
  • Set portal1 = (Last created unit)
  • Animation - Play (Last created unit)'s death animation
  • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal_Copy_3 facing 270.00 degrees
  • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
  • Set portal2 = (Last created unit)
  • Animation - Play (Last created unit)'s death animation
  • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal_Copy facing 270.00 degrees
  • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
  • Set portal3 = (Last created unit)
  • Animation - Play (Last created unit)'s death animation
  • Unit - Create 1 Portal Talin Elfbane for Neutral Hostile at talinportal_Copy_2 facing 90.00 degrees
  • Animation - Change (Last created unit)'s animation speed to 150.00% of its original speed
  • Set portal4 = (Last created unit)
  • Animation - Play (Last created unit)'s death animation
  • Unit - Create 1 Sand Tornado (Ra Canyon) for Neutral Hostile at talinportal_Copy_3 facing 270.00 degrees
  • Set talin = (Last created unit)
  • Unit - Add Talin to (Last created unit)
  • Unit - Unpause talin
  • Unit - Order talin to Right-Click talinportal_Copy_2
  • Unit - Order talin to Move To talinportal_Copy_2
  • Trigger - Turn on under hammer talin <gen>
  • Trigger - Turn on under hammer talin Copy 2 <gen>
  • Trigger - Turn on under hammer talin Copy 3 Copy <gen>
  • Trigger - Turn on under hammer talin Copy Copy <gen>
  • Else - Actions
 
Level 8
Joined
Jul 18, 2010
Messages
332
No need to. That whole trigger works. All the portals appear. Though they disappear because their death animation is triggered.

And the trigger is super long.

You think I should just use a periodic event? I think this is better cause I wouldn't need a periodic event, but you know, if it doesn't work.
 
Status
Not open for further replies.
Top