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
imported_Bort
#2
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)
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
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