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

Pick Race - Not Revealing Townhall

Status
Not open for further replies.
Level 9
Joined
Aug 18, 2008
Messages
346
You see - I am not very experienced with triggers and my map (Marshland of Mystery @ Map Development) is my very first real attempt at trying to become better. However, I need help with this.

When it comes to triggering I am limited. I can do minor changes and most of the times I manage to make the spells (from the resource section - man you guys rule) to work. In order for my map to become playable a lot still remains and I am working on it.
Hopefully you guys will enjoy the outcome once I am done.

I am rather close to a public beta version of the map however, before that becomes a reality a very important trigger remains.
Some might know, some might not know. This project started as a result of the "Race Building Contest #3"
I have always wanted to make a "Alternate Melee" map (and a Hero Arena - don't hate me!) ever since I played some shitty yet interesting map with Draeneis, Fel orcs, Gnolls and Corrupted Night Elves back in 2004.

During the Race Building Contest #3 there were a lot of talk about how to solve the annoying "You will be revealed to your opponents unless you build a Town Hall". Michael Peppers have a solution, however I would very much want it to be in GUI - since that's what I am trying to learn and it's easy for me work with.


This is the trigger I use at the moment.
I need a trigger like this - but with multiple choices (I currently have 3 custom races) and I need it to not reveal your entire base to your opponents. Think anyone could give it a try?

  • Start
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Custom_Or_Not to Custom Race or not?
      • Dialog - Create a dialog button for Custom_Or_Not labelled Yes
      • Set Custom_Buttons[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Custom_Or_Not labelled No
      • Set Custom_Buttons[2] = (Last created dialog Button)
      • Set TempPlayerGroup = (All players matching (((Matching player) controller) Equal to User))
      • Player Group - Pick every player in TempPlayerGroup and do (Actions)
        • Loop - Actions
          • Set AmntOfPlayers = (Number of players in TempPlayerGroup)
          • Dialog - Show Custom_Or_Not for (Picked player)
      • Custom script: call DestroyForce(udg_TempPlayerGroup)
  • Timer
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for (Last started timer) with title Choose Race
      • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
      • Wait 30.00 seconds
      • Countdown Timer - Destroy (Last created timer window)
  • Buttons
    • Events
      • Dialog - A dialog button is clicked for Custom_Or_Not
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Custom_Buttons[1]
        • Then - Actions
          • -------- Replace Units here. --------
          • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
            • Loop - Actions
              • Unit - Remove (Picked unit) from the game
          • Unit - Create 1 Keep for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          • For each (Integer B) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 Worker for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          • Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: ============ | ...
          • Set tally = (tally + 1)
          • Set Temp_Point1 = ((Triggering player) start location)
          • Special Effect - Create a special effect at Temp_Point1 using SoulFeast.mdx
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_Temp_Point1)
        • Else - Actions
          • Set tally = (tally + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • AmntOfPlayers Equal to tally
        • Then - Actions
          • Countdown Timer - Destroy (Last created timer window)
          • Trigger - Turn off Timer <gen>
        • Else - Actions


Link to my project: http://www.hiveworkshop.com/forums/map-development-202/marshland-mystery-180862/
Also - hero abilities are outdated (remade or balanced), will update that post some day.
 
Level 16
Joined
Dec 29, 2008
Messages
1,365
I have worked on a race map for a contest in my country wait a bit i'll translate the triggers and send you the map.
Found and translated :
 

Attachments

  • Horda v0.04.w3x
    2.9 MB · Views: 110
Level 9
Joined
Aug 18, 2008
Messages
346
You are such a lovely dear JokeMaster! This looks splendid.
I will send you a rar file filled with love (models and other useful things) some day as a thank you. Got any favorite race?
Rep will have to wait however ("You must spread around some reputation before giving..." is what I get at the moment)
 
Status
Not open for further replies.
Top