HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

WE Unlimited. Need Help with Dialog

09-14-2003, 11:01 PM#1
CyricMoonblade
I dont understant the Advanced dialog creator in WEU. I got my menu to show and thing no problem,but how am i supposed to do an action when a certain button is clicked? since you cant give the button variables that are created via the advanced option.

thanks for any help.


*Anybody
09-15-2003, 02:55 AM#2
CyricMoonblade
?
09-15-2003, 06:07 AM#3
PitzerMike
it requires the name of a function that contains the actions. As you don't seem to know JASS you won't know how to write such a function so there is the 'Advanced - Convert Trigger Name to function name' trigger that returns a function name.

So for example you create the trigger called "ActionA" that has no events or conditions but contains all actions for your dialog button A. Then you use the actions of that trigger for your dialog button by setting the function for button 1 to 'Advanced - Convert trigger name "ActionA" to function name'.

Note: This trigger for the button-actions needs to be above the trigger where you create your dialog
The same rules apply to any advanced action that takes a function as parameter
09-15-2003, 06:52 AM#4
CyricMoonblade
Hey it works :D Thanks a plenty.
09-15-2003, 07:05 AM#5
CyricMoonblade
Ok new problem. I want it to work for multiple players, as of the moment itll only work for a specified player. Since using the make trigger function things doesnt detect Triggering players. Im going to work on it, but if anyone can figure it out b4 me.... (other then the obvious create one for each player)

*figured it out i think. Just doing the Local Player trgger. Just have to be sure to not have players looking in same area or it wont work.