HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger problem

03-06-2004, 04:11 PM#1
LicheMaster
I'm making a Dialog, and it should be set right but when i start the game i only see a box but no button this is the code

Events:
Time - Elapsed game time is 0.01 seconds
Condition:
Action:
Dialog - Show ChooseRace for Player 1 (Red)
Dialog - Change the title of ChooseRace to Choose Race
Dialog - Create a dialog button for ChooseRace labelled Choose TUED - The U..
Set ChooseTUED[1] = (Last created dialog Button)


03-06-2004, 04:14 PM#2
BattleBotv8.2
You need to create the dialog button before you show the dialog itself.
03-06-2004, 04:16 PM#3
Ss4_kamon
Hmm.. Try putting show dialog last, and make sure you are player 1...

EDIT: Oops, I'm too slow, Lol
03-06-2004, 04:19 PM#4
LicheMaster
Thank i will try that :)
03-06-2004, 04:25 PM#5
LicheMaster
That worked, now how do i get all the text inside the box and buttons ? It all is outside the box and that is frustrating
03-06-2004, 05:05 PM#6
BattleBotv8.2
You cant (As I know of). You have to shorten it or make more sub-menus.
03-06-2004, 06:56 PM#7
LicheMaster
I don't think you follow me quite.... i mean I can't get the text i have in the Box not on the button but the box that comes where the buttons are, you now the box with the titel...
03-06-2004, 07:59 PM#8
Noobelf
To create the text in the buttons do something like this:
Code:
Create a Dialouge button for (Choose_Race) labelled (yourtexthere)
Set variable (yourdialougebuttonvariable)=last created button
Just do that for all your buttons, oh and be sure to use different variables for each button, either that or use an array.
03-06-2004, 10:01 PM#9
LicheMaster
I already did that but still it won't make the button bigger so all the text fits inside it
03-06-2004, 10:04 PM#10
weaaddar
Try using |n in your strings inside the button.
I.e. "I'd buy that for |n a dollar"
Should display it on two lines.
03-06-2004, 10:13 PM#11
LicheMaster
Arg this gets more and more annoying now the dialog won't show at all <----- FALSE ALARM i founded the bug...
03-06-2004, 10:23 PM#12
LicheMaster
Now my last Question is when i've pressed the button how do i then get the game to create a town hall ?
03-06-2004, 10:25 PM#13
weaaddar
Event A button on a Dialog is clicked
Condition
Clicked button==MyButton
Action
Create a townhall at some location for triggering player
03-06-2004, 10:41 PM#14
LicheMaster
and then if there is more than one player ??
03-06-2004, 10:46 PM#15
weaaddar
Thats why I used TRIGGERING PLAYER