• 🏆 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] Twi questions(Dialog,Game Time)

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
Hello everyone,I want to create a dialog but something isn't working so I'm here now.I need help also with my multiboard- How can I create game time in some row/column. I realy need that and also I need help with that.

Here's my unfinished trigger(I also will create both modes with the fight and timer resuming,etc.)



  • Dialog
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Game - Pause the game
      • Game - Display to (All players) the text: (Wait until + ((Name of Player 1 (Red)) + will choose the arena mode.))
      • Dialog - Show (Clicked dialog) for Player 1 (Red)
      • Dialog - Change the title of (Clicked dialog) to Arena mode
      • Dialog - Create a dialog button for (Clicked dialog) labelled Survivor Mode
      • Set TeamMode = (Last created dialog Button)
      • Dialog - Create a dialog button for (Clicked dialog) labelled Team Mode
      • Set SurvivorMode = (Last created dialog Button)
      • Dialog - Clear (Clicked dialog)
      • Dialog - Hide (Clicked dialog) for Player 1 (Red)
  • Arena
    • Events
      • Time - Every 300.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All enemies of Player 6 (Orange)) and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Center of Teleport Destroyers Region <gen>)
      • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Center of Teleport Guards Region <gen>)
      • Game - Pause the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to TeamMode
        • Then - Actions
          • Wait 5.00 seconds
          • Game - Display to (All players) the text: The Team Fight will...
          • Game - Unpause the game
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Camera - Set the camera bounds for (Picked player) to Arena Region <gen>
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to SurvivorMode
            • Then - Actions
              • Wait 5.00 seconds
              • Game - Display to (All players) the text: The Team Fight will...
              • Game - Unpause the game
              • Player Group - Pick every player in (All players) and do (Actions)
                • Loop - Actions
                  • Camera - Set the camera bounds for (Picked player) to Arena Region <gen>
            • Else - Actions
 
Last edited:
Level 5
Joined
Jun 24, 2009
Messages
118
I want this dialog only at start - playerred will set the game mode and that's all.No changes about mode.
 
Level 2
Joined
Jul 13, 2009
Messages
9
Start (Dialog and Other)
  • start
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set bSurvivor = False
      • Set bTeam = False
      • Game - Pause the game
      • Game - Display to (All players) the text: (Wait until + ((Name of Player 1 (Red)) + select the mode.))
      • Dialog - Clear ModeDialog
      • Dialog - Change the title of ModeDialog to Game mode?
      • Dialog - Create a dialog button for ModeDialog labelled Survivor Mode
      • Set DButton[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for ModeDialog labelled Team Mode
      • Set DButton[1] = (Last created dialog Button)
      • Dialog - Show ModeDialog for Player 1 (Red)
      • Trigger - Turn on mode select <gen>
      • Custom script: call DestroyTrigger (GetTriggeringTrigger())
Mode Select (A dialog-button is clicked)
  • mode select
    • Events
      • Dialog - A dialog button is clicked for ModeDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DButton[0]
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of Player 1 (Red)) + has selected Survivor Mode.)
          • Set bSurvivor = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DButton[1]
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of Player 1 (Red)) + has selected Team Mode.)
          • Set bTeam = True
        • Else - Actions
      • Trigger - Turn on arena <gen>
      • Game - Unpause the game
      • Custom script: call DestroyTrigger (GetTriggeringTrigger())
Duel Starts (choosing mode and more)
  • arena
    • Events
      • Time - Every 300.00 seconds of game time
    • Conditions
    • Actions
      • Game - Pause the game
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units owned by (Player((Integer A))) matching ((((Picked unit) is A structure) Equal to False) and (((Picked unit) is A Hero) Equal to True))) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of YourRegion1 <gen>), facing (Center of YourRegion2 <gen>)
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Camera - Set the camera bounds for (Player((Integer A))) to Arena <gen>
      • For each (Integer A) from 6 to 10, do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units owned by (Player((Integer A))) matching ((((Picked unit) is A structure) Equal to False) and (((Picked unit) is A Hero) Equal to True))) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of YourRegion2 <gen>), facing (Center of YourRegion1 <gen>)
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Camera - Set the camera bounds for (Player((Integer A))) to Arena <gen>
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • bSurvivor Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: The fight will be S...
          • Game - Unpause the game
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • bTeam Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: The fight will be T...
          • Game - Unpause the game
        • Else - Actions
Is this works for you now?
I think is must work without any problems...
 
Last edited:
Status
Not open for further replies.
Top