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

[Trigger] Trigger Help Please - King Of The Hill Trigger!

Status
Not open for further replies.
Level 19
Joined
Oct 1, 2008
Messages
1,667
:confused: :confused: :confused: :confused: :confused:
Please help, i am working on a map and need to find out how to make a trigger (I am not very good with them) that states that if a unit stay in a certain area for a few minutes, its owners team wins... I would also like this time to reset if all units belonging to one team leave the area or die.

As I said before, I am not very good with triggers so could someone please tell me exactly what to do... :gg:

Oh and if you want to try this map go to Duel v0.9.7 - 6/10/08 - Warcraft 3 Maps - EpicWar.com and vote if you want (5! :grin: )
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
What you can do is make a Action in the Map Initialization
  • Set TIMER = 0
It's a Integer variable.

Then make a trigger like:
  • Countdown
    • Events
      • Every 1 second of the game
    • Conditions
      • REGION contains Position of UNIT
    • Actions
      • Set TIMER = (TIMER + 1)
      • If (All conditions are true) then do (Then Actions), else do (Else Actions)
        • If - Conditions
          • TIMER is equal to 60
        • Then - Actions
          • Game - Victory for owner of UNIT
        • Else - Actions
Also make a trigger That resets the timer
  • Reset timer
    • Events
      • UNIT dies
    • Conditions
    • Actions
      • Set TIMER = 0
  • Reset timer 2
    • Events
      • UNIT leave REGION
    • Conditions
    • Actions
      • Set TIMER = 0

There might be a faster way, but I can't think of any right now.

Triggers are the part that makes maps work. If you can't make triggers, you got nothing more then a file that sucks up HD space. You should either make the map with someone else who can make triggers, and then you do the other stuff (terraining, making abilities, maybe modelling, etc.)
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
No need for credits, it was just 1 little trigger. If somebody makes a complete and unique system for you, you can give him/her credits :wink:

Good luck with your maps, and remember what I said in my previous post about teaming up with someone for the triggers.
 
Level 19
Joined
Oct 1, 2008
Messages
1,667
uhh this is a rly nooby question, but how do you Set TIMER = 0 etc
wow, im really hopeless at this...
oh, and how do you actually MAKE the timer in the first place... xD
and finally (probably), explain the If (All conditions are true) then do (Then Actions), else do (Else Actions) step..

rofl, oh well, im new to triggers, ill get used to them, in time.....
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
It's an Integer Variable. Use the command 'Set Variable' to do this. Same for added 1 to the TIMER.

To create a variable, I suggest you read the Variables Tutorial.

The If/Then/Else (Multiple Fuctions) is an Action, just like 'Set Variable'.


These are really the basics of the basic. You simply have to check out a lot of tutorials in the Trigger (GUI) Editor and General Mapping Tutorials. They will provide you with at least the basic knowledge to make maps. Don't think map making is a walk in the park, and all you have to do is place a few puppets. It'll won't get you a quality map.

Good luck.
 
Level 19
Joined
Oct 1, 2008
Messages
1,667
lol, yeah, im trying to go for a more player-action based approach and am trying to stay away from complex triggers...
OK, now more questions (sorry for the hassle)! For the UNIT dies trigger, i want the unit(s) in the middle to be on any kind, not a specific one; how would i do that?
 
Last edited:
Status
Not open for further replies.
Top