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

Major Triggering Help (GUI)

Status
Not open for further replies.
Level 7
Joined
Jul 11, 2008
Messages
104
Okay, I really don't know triggering that good, I'm still learning.

Anyway,

I need help with making a trigger such as this:

Freeze the map, except for red: there are four areas. I want to be able to toggle through them using Arrow keys. Then press esc or spacebar (Doesn't matter) to select that area. After red selects, the map will be unfrozen and people will be able to select a unit from a tavern. After that unit is selected, have him teleported to that area. (There are two regions and two teams, btw. I want one team teleporter to one region of the area, another team teleported to the other region.) Freeze the unit after selection. After everyone selects, (4 players) I want a countdown to unfreeze the units.

Thats all

I know it seems like a bit much, but +Rep to anyone who helps with this. :cry:
 
Level 3
Joined
Feb 8, 2010
Messages
34
Freeze the map, except for red: there are four areas. I want to be able to toggle through them using Arrow keys. Then press esc or spacebar (Doesn't matter) to select that area. After red selects, the map will be unfrozen and people will be able to select a unit from a tavern. After that unit is selected, have him teleported to that area. (There are two regions and two teams, btw. I want one team teleporter to one region of the area, another team teleported to the other region.) Freeze the unit after selection. After everyone selects, (4 players) I want a countdown to unfreeze the units.
:cry:

  • Untitled Trigger 001
    • Events
      • Your Event here; It might be anything you want ;D
    • Conditions
    • Actions
      • Game - Pause the game
      • Trigger - Turn on (all game pause related triggers)
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Presses the Left Arrow key
    • Conditions
    • Actions
      • Camera - Apply leftcamera for Player 1 (Red) over 0.00 seconds
And to select a region you might have to make a unit in each region so that:

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Unit selected = wisp on the right
        • Then - Actions
          • Set selectedarea = region on the right
          • Game - Unpause the game
          • Unit - Create 1 Tavern for player 1 (or any player) at [wherever you want]
        • Else - Actions
and add an if then else condition for each region. You also need to create a unit (wisp) to be able to "shop" from the tavern. AND you need a region where your tavern is located. To move the heroes:

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters (region the tavern is in)
    • Conditions
      • Unit - Unit type of entering unit is NOT wisp
    • Actions
      • Unit - Move unit instantly to selectedregion (that's your variable)
I tried to make this as simple as possible, if you have any questions ask away ;D
 
Level 7
Joined
Jul 11, 2008
Messages
104
Thanks, also have a few more questions.

Say I make a trigger like:

Unit enters region
Move unit to x region

How can I freeze/pause that unit too?

Also, how do I make it so that when all players pick, it unfreezes/unpauses everyone?
 
  • Unit - Pause (Triggering unit)
  • Trigger0
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Player Group - Add (Picked player) to (Temp_Force)
  • Trigger
  • Events
    • Add the event when the player picks the unit, e.g. Dialog Button Clicked event
  • Conditions
  • Actions
    • Player Group - Remove (Triggering Player) from (Temp_Force)
    • If (All conditions are true) then do (Actions), else do (Actions)
      • If - Conditions
        • (Number of players in (Temp_Force)) Equal to 0
      • Then - Actions
        • Unit - Unpause all units
      • Else - Actions
 
Status
Not open for further replies.
Top