• 🏆 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!

[Trigger] Problems with trigger.

Status
Not open for further replies.
Level 9
Joined
Jun 7, 2008
Messages
440
I got a trigger dealing with dialog buttons and a couple other things:
  • Events
  • A dialog button is clicked for Duelers
  • Conditions
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (clicked dialog) equal to DONOTHING
    • Then - Actions
      • skip remaining actions
    • Else - Actions
      • Do nothing
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (clicked dialog) equal to Defeat
    • Then - Actions
      • set Defeated = (Triggering player)
      • Trigger - Run defeat <gen> checking conditions
    • Else - Actions
      • Do nothing
  • defeat
  • Events
  • Conditions
  • Actions
    • Countdown Timer - Pause dueltimer
    • Dialog - Hide Duelists for (Triggering player)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Defeated is in upgrader) equal to false)
    • Then - Actions
      • Trigger - run Defeat deny
      • Skip remaining actions
    • Else - Actions
      • Do nothing
  • Unit - Move Dueler instantly to LOC_One
  • Custom script: call RemoveLocation(udg_LOC_One)
  • Add 400 to Defeated current gold
  • Defeat Deny
  • Events
  • Conditions
  • Actions
    • Dialog - Hide Duelists for (Triggering player)
    • Quest - Display to (Player group((Triggering player))) the Hint message: Your not an upgrade...
    • Wait 0.50 seconds
    • Dialog - Show Duelists for (Triggering player)
    • Countdown Timer - Resume dueltimer
    • Trigger - Turn off (This trigger)
My problem is this, when ever they click defeat the first time it works perfectly, when they select it again, the "defeat deny trigger" doesn't fire. It Just skips remaining actions. and thats the end of it, the timer continues on until it expires. Any ideas?
 
Level 9
Joined
Jun 7, 2008
Messages
440
Certainly, Upgrader is the player group used when a player upgrades his units. When he/she does they are added to that group, so if a 1v1 hero duel occurs, they select "defeat" which checks if they are an in the playergroup "upgrader".
 
Level 8
Joined
Aug 4, 2006
Messages
357
i'm not sure what you're trying to do, or what your problem is, but i made your triggers nicer. :D
  • Events
    • A dialog button is clicked for Duelers
  • Conditions
  • Actions
    • -------- you don't need an if action for the DONOTHING button. the player can only click on one button --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (clicked dialog) equal to Defeat
      • Then - Actions
        • set Defeated = (Triggering player)
        • Trigger - Run defeat <gen> checking conditions
      • Else - Actions
        • -------- the "do nothing" action is unnecessary --------
  • defeat
  • Events
  • Conditions
  • Actions
    • Countdown Timer - Pause dueltimer
    • Dialog - Hide Duelists for (Triggering player)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Defeated is in upgrader) equal to false)
      • Then - Actions
        • Trigger - run Defeat deny
      • Else - Actions
        • Unit - Move Dueler instantly to LOC_One
        • Custom script: call RemoveLocation(udg_LOC_One)
        • Add 400 to Defeated current gold
      • -------- the else actions can only be run if the condition is not met --------
  • Defeat Deny
  • Events
  • Conditions
  • Actions
    • Dialog - Hide Duelists for (Triggering player)
    • Quest - Display to (Player group((Triggering player))) the Hint message: Your not an upgrade...
    • Wait 0.50 seconds
    • Countdown Timer - Resume dueltimer
    • Dialog - Show Duelists for (Triggering player)
    • -------- there's no reason to turn this trigger off. it may keep it from being run a second time (not sure) --------
 
Status
Not open for further replies.
Top