| 05-27-2004, 05:35 AM | #1 |
Hey, i have done alot of mapping, but for once i have 2 use dialog buttons... can some1 help me out with this: i want it 2 display a dialog on player ones screen that says Select Your Diffuculty and has an easy, medium, and hard buttons. then if easy is clicked set the integer DIFFUCULTY = 1, if medium = 2, if hard = 3, then i want it 2 clear off the screen! i have figured out most of it... i just cant figure out how 2 make it detect with button was clicked so mayb i did in wrong. so could some1 explain all of this 2 me? thnx |
| 05-27-2004, 04:30 PM | #2 |
If you have some understanding of JASS, I would recommend you use this. It's simple to use, and it works. |
| 05-27-2004, 04:30 PM | #3 |
Start by making 3 Boolean variables for each diff default false. Then do some if statements like if (last clicked dialog) equal to Easy then set Diff easy = true. I think that's it... but im at school |
| 05-27-2004, 04:59 PM | #4 |
use 1 integer variable 1 dialog variable, and 1 dialog button array Create a dialog button for the dialog variable, call it Easy. Set the db_array[1] = the last created button repeat for Medium and Hard changing the array index to 2 then 3 New trigger Event: a dialog button is clicked for the dialog actions: loop for each integer a from 1 to 3 if clicked button is = to db_array[Get For Loop A] then set integer = Get For Loop A endif then just use the iteger varaible value 1 2 or 3 to alter your triggers |
| 05-27-2004, 07:26 PM | #5 |
:D I got everything 2 work, it all was right triggers, i just forgot to add set easy = last created dialog button thnx anyway though! |
