Simple question. How do you get a random button to work on a dailog? My system right now is I have 4 dialog areas (for all 4 buttons), and whenever 1 player clicks a button, it delete's all units in those areas for that player, and it creates a unit in the area that connects with the specific button pressed. I know there are other ways, but it works out rather nicely. Anyways, I was wondering how it could be done. Thanks!
do you want to create a button with a random icon? Do you want advice about how you should link a unit and a button so that the button affects the unit?
I think he has a button that has the label text of Random and wants a random event to happen.
If so...
This may not be the best, most efficient way but I just threw this together fast.
Youll need a global variable (one in the left side by the triggers) mine is called RandomButton, the other two are local variables.
Global variables can be used in any trigger and multiple triggers, while local variables are used in only one trigger and as far as I know, are nullified after the trigger is done (meaning no longer has any value until trigger is run again, value is reset).
Simple question. How do you get a random button to work on a dailog? My system right now is I have 4 dialog areas (for all 4 buttons), and whenever 1 player clicks a button, it delete's all units in those areas for that player, and it creates a unit in the area that connects with the specific button pressed. I know there are other ways, but it works out rather nicely. Anyways, I was wondering how it could be done. Thanks!
huh?
I'm not sure what the question is.
do you want to create a button with a random icon? Do you want advice about how you should link a unit and a button so that the button affects the unit?
I think he has a button that has the label text of Random and wants a random event to happen.
If so...
This may not be the best, most efficient way but I just threw this together fast.
Youll need a global variable (one in the left side by the triggers) mine is called RandomButton, the other two are local variables.
Global variables can be used in any trigger and multiple triggers, while local variables are used in only one trigger and as far as I know, are nullified after the trigger is done (meaning no longer has any value until trigger is run again, value is reset).
ETC ETC...
@xHydrAx74: Go
You knew exactly what I was talking about. Thank you so much! The system is easy, and exactly what I needed.