• 🏆 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!

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