• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Trigger Glitch??

Status
Not open for further replies.
Level 4
Joined
Jul 22, 2012
Messages
72
Fel Orc Event
Events
Unit - A unit enters Region 013 <gen>
Conditions
(Hero level of Blademaster 1767 <gen>) Greater than or equal to 10
Actions
Unit - Change ownership of Magtheridon 1817 <gen> to (Owner of Kel'thal Krom'ar 1770 <gen>) and Change color
Unit - Create 1 Lords of Chaos for (Owner of Magtheridon 1817 <gen>) at (Center of Region 013 <gen>) facing Default building facing degrees


Ok How Come It create's like infinite Lords of Chaos??
 
Because if you create the lord of chaos at the region, it fires the event again. Then it creates another lord of chaos which fires the region again, and so on.

Just disable the trigger before creating the unit and enable it afterward so that the creation won't actually fire the trigger's event.
  • Trigger - Disable Fel Orc Event <gen>
  • Unit - Create 1 Lords of Chaos for (Owner of Magtheridon 1817 <gen>) at (Center of Region 013 <gen>) facing Default building facing degrees
  • Trigger - Enable Fel Orc Event <gen>
 
Level 4
Joined
Jul 22, 2012
Messages
72
umm didn't work

Fel Orc Event
Events
Unit - A unit enters Region 013 <gen>
Conditions
(Hero level of Blademaster 1767 <gen>) Greater than or equal to 10
Actions
Unit - Change ownership of Magtheridon 1817 <gen> to (Owner of Kel'thal Krom'ar 1770 <gen>) and Change color
Trigger - Turn off (This trigger)
Unit - Create 10 Lords of Chaos for (Owner of Magtheridon 1817 <gen>) at (Center of Region 013 <gen>) facing Default building facing degrees
Trigger - Turn on (This trigger)

Ugh here still didnt work but I did this

Fel Orc Event
Events
Unit - A unit enters Region 013 <gen>
Conditions
(Hero level of Blademaster 1767 <gen>) Greater than or equal to 10
Actions
Unit - Change ownership of Magtheridon 1817 <gen> to (Owner of Kel'thal Krom'ar 1770 <gen>) and Change color
Trigger - Turn off Fel Orc Event <gen>
Unit - Create 10 Lords of Chaos for (Owner of Magtheridon 1817 <gen>) at (Center of Region 013 <gen>) facing Default building facing degrees
Trigger - Turn on Fel Orc Event <gen>
 
Last edited by a moderator:
Both triggers above do same thing.
To fix this you must add delay.

I tested this works fine:
  • Example
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Wait 0.00 seconds
      • Trigger - Turn on (This trigger)
So in your trigger just do next:
  • Fel Orc Event
    • Events
      • Unit - A unit enters Region 013 <gen>
    • Conditions
      • (Hero level of Blademaster 1767 <gen>) Greater than or equal to 10
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Change ownership of Magtheridon 1817 <gen> to (Owner of Kel'thal Krom'ar 1770 <gen>) and Change color
      • Unit - Create 10 Lords of Chaos for (Owner of Magtheridon 1817 <gen>) at (Center of Region 013 <gen>) facing Default building facing degrees
      • Wait 0.00 seconds
      • Trigger - Turn on (This trigger)
Test and report.
 
Status
Not open for further replies.
Top