HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialoge buttons

08-09-2003, 03:49 PM#1
Catalyst
How do I get my dialoge button variables, into my dialoge box?
It gives me the option to create new buttons with titles... but how do i tie these to variables?

cheers

Cata
08-09-2003, 04:12 PM#2
Earth-Fury
set variable action, set the dialog button var (usre an array to cut down on variables) by this:
set Dialog_buttons[1] = last created dialog button

put this UNDER the action that creates the button u wsnt to set toi it, DIRECTLY under.
08-09-2003, 04:19 PM#3
Catalyst
Perfect. I should have remembered that from... my "old" days :).

Do the arrays start at 0 or 1?
08-09-2003, 05:58 PM#4
chemo
the array starts at 0, it works for me:D
08-09-2003, 06:32 PM#5
Earth-Fury
i start my arrasys at 1, because then u can refrence thing like a playor index. like an array of plaer... names! and have the arry index be the same as the player index for easy refrencing.
08-09-2003, 07:09 PM#6
Catalyst
Too used to programming m8, everything starts a 0.
I'd just stick an arithmatic alignment variable in, and use that to alighn player # to the array.

:)
08-09-2003, 07:24 PM#7
chemo
the player index still work, either u have it on 0 or 1 :D
08-09-2003, 07:38 PM#8
Earth-Fury
no, it dosent. plauer 1's index is 1. u could do an aritmitic and always remove one form the player index.
11-15-2003, 05:25 PM#9
9398hrb
the link provided gives a guide to wciii editor i got tft and the editor is different and its harder to follow the guide as most the stuff is different. I tryed following it but it doesnt work. Plus my arrays go from 1-8192 but i cant make them 0, what do i doooo??
11-15-2003, 06:06 PM#10
littlepiggy
Sorry Earthfury, player 1's index, when using the JASS function Player(), is 0. Player(0) returns player one. Player(7) returns player 8.