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

Dialogue Button help please

Status
Not open for further replies.
Level 2
Joined
Aug 24, 2005
Messages
7
I'm having trouble using the dialogue buttons. I have a trigger to create a dialogue box for every player in the game, then create four (4) buttons in the dialogue box. I want a unit to spawn at a players start location when he/she chooses one of the options. The unit of course corresponds with what option the player chose. My problem emerges after I choose one of the options, the unit doesn't spawn. I can't figure out how to get one to.

I apologize if this is a noob issue and I'm just being stupid, also if this issue was somewhere else.

A prime example of what I'm trying to do is Zoator TD. That is, the game starts -> a dialogue box appears with different races -> player chooses a race -> dialogue box disappears -> the builder of that race spawns for the player.

I would open Zoator and look at the trigger myself, but I get an error whenever I try and open it.

Thanks for taking the time to read my plea for help, and thanks ahead of time for any help I recieve.

Twisted Nerve
 
Level 6
Joined
Aug 29, 2004
Messages
159
Ok. This is what i think you should do, but i dont have any experience with multi-player dialogs.

You should have a trigger like this (example for choosing race)
Code:
For Each Integer A from 1 to 12
Create a dialog button for DialogBoard[IntegerA] labelled Human
Set DialogHuman[Integer A] = last created dialog button
Create a dialog button for DialogBoard[IntegerA] labelled Orc
Set DialogOrc[Integer A] = last created dialog button
(etc etc)
Display DialogBoard[IntegerA] for Player[IntegerA]

and then the next trigger (i think) should look like this
Code:
Event - Player clicks a dialog button
Actions - 
For Each Integer A
      if player[integer A] is equal to triggering player
      then
            if Clicked Dialog Button equal to DialogHuman[Integer A}
            then create 1 Peasant at player[integer A] start location
            else do nothing
            if Clicked Dialog Button equal to DialogOrc[Integer A}
            then create 1 Peon at player[integer A] start location
            else do nothing
      else do nothing

Hmm that should work
tell me if it doesnt and i'll work out whats wrong
hope i helped,
=][= Bort
 
Status
Not open for further replies.
Top