• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Choosing a Race through Dialog

Status
Not open for further replies.
Level 22
Joined
Jun 23, 2007
Messages
3,242
Ok, so my map will have more than 4 races, so i need to use Dialog triggers to choose your race in the beginning of the map. I've seen this done before, and it looked rather nice, so i decided to give it a shot.
However, i do not know shite about what I'm doing.
Could anyone give me like a brief overview on how you would do this, or better yet, post a test map or something?
 
Level 13
Joined
Sep 14, 2008
Messages
1,407
Well you create a dialog per trigger:

- dialog - create trigger

then you save it in a variable e.g. "raceChoser"

Now you create the buttons for it:

- Nightelf, orc, undead, human, e.g. naga....

and save EACH one in a variable -> "butNightelf" "butOrc" ... and so on
Then you create a trigger:

Event: Button is pressed for dialog
Condition: -
Actions:

IF(pressed button = "butNightelf")
-> Create nightelf starting units for triggering player (I think triggering player will work here)
IF(pressed button = "butOrc")
-> Create orc starting units for triggering player

and so on
 
Status
Not open for further replies.
Top