| 01-27-2003, 02:24 PM | #1 |
What is a check to see who clicked what on the dialog I created? I have 4 different choices in the popup dialog box thinger each person chooses which class they want for my RPG. The next trigger, to respond to the clicking goes as follows: EVENT: Dialog - A dialog button is clicked CONDITION: (Clicked dialog button) equal to SelectedClass[0] ACTION: Create 1 Rogue for (triggering player) at (Center of (Playable map area)) facing default building facing degrees. It works when I create the unit for just player 1, but how can I check to see who is clicking on the button so I can create the right units in the right places. |
| 01-27-2003, 04:43 PM | #2 |
Guest | I made a menu to select statgain and got the same problem the answer is, make a menu for EVERY player. |
| 01-27-2003, 04:44 PM | #3 |
for some reason i dont think triggering player works, im not to sure, but triggering player just wont work, u may have to do 1 for each player, mabey someknows a better way |
| 01-28-2003, 02:05 AM | #4 |
to clairify, u need to do have a separate dialog for each player and each dialog needs separate dialog butttons so you may need to check (# of players) buttons to know that u need a rogue, and depending on which one of the (# of players) you know who clicked it (and who to create it for). |
| 01-28-2003, 03:52 PM | #5 |
Each player will need a dialog, probably the best method is to do this through a dialog array, with parrallel dialog button arrays. For a dialog array you must set x[num] = createdialog(), or something like this, I belive the dialog array only works in the local function. |
