| 12-04-2002, 08:34 PM | #1 |
Guest | I am creating a series of dialog menus. I am able to get the menus up and the buttons shown, but when I tell it to go to the other menu that is alredy created it just hides the original menu without showing any others when a button is clicked. Action: -Dialog Button Clicked on [x] dialog. Condition: -clicked dialog buttn = to [y] Action: -hide [x] from triggering player -show dialog [z] to triggering player (same for all buttons) HELP!?!?:abomHUH?: :abomHUH?: :abomHUH?: :abomHUH?: |
| 12-04-2002, 09:05 PM | #2 |
Are your dialogs arrays? Cause that would make it more complicated. |
| 12-04-2002, 09:52 PM | #3 |
Guest | My dialog "buttons" are arrays but my dialog "menus" are clearly stated in variable names. This trigger is a bit more clear. Action: -Dialog Button Clicked For (d_Human) Condition -Clicked dialog Button Equal To (db_More[1]) Action: -Hide Dialog (d_Human) from (triggering player) -Show Dialog (d_HumanMore) to (triggering player) |
| 12-05-2002, 12:20 AM | #4 |
Guest | I figured out my own problem since no one else seemed to know.:bangH: I just took out the !hide dialog [x]! and changed triggering player to a specific player (Im doin god's land wher u pick units with dialog so I know the only person who will ever see the dialog menu:thrust: ) Perhaps all you other peeps who have the same problem could use the same trigger only using an "If [triggering player = player #] then do [show dialog box to player #] else [do nothing]". |
| 12-05-2002, 12:49 AM | #5 |
I've figured the problem as soon as I saw it, however, you had figured it too. The problem is with "triggering player", since there's no player in the event. |
| 12-05-2002, 12:52 AM | #6 |
isnt there a way to find the clicker of button in JASS? |
| 12-05-2002, 01:06 AM | #7 |
Guest | JASS?:abomHUH?::abomHUH?::abomHUH?: |
| 12-05-2002, 01:15 AM | #8 |
Yes there is. If you want to know it, I'd ask Weaaddar or SuperIKI. Oh and JASS is the programming language for WarCraft 3. It's not the best around, but who are we to complain. |
| 12-05-2002, 02:14 AM | #9 |
I like jass alot, I find it to be possibly the easiest language I have ever used and its very versitile for such a highend language. Its problem comes with its compiler, compiling trigger seperetly (really bad move) and not being color coded at all. Black on white turns to soup if you look at for a long time.. |
| 12-05-2002, 06:14 AM | #10 |
The dialog engine trigger tells you who clicked the button. Look here. And it shortens your code, too. |
| 12-05-2002, 11:05 AM | #11 |
Guest | WOW!:ggani: Can't believe ive been missin all this stuff. I love map making but keep to myself. It's hard teaching urself and doing it urself but it always comes out your way:D ! He he he:infth: I could go long ways with this stuff!!! |
| 12-06-2002, 01:29 AM | #12 |
Exactly, don't give in to SuperIKI's dialog system!! Make your own like me. :) j/k There's so many uses like options to say different things to people, character creation, "Main Menus", Rescource trading, allying, give eachother stuff. Bassicly, you can activate any trigger or trigger parts with it, even creating new triggers with dialogs in game! |
| 12-06-2002, 01:56 AM | #13 |
Yup I'm the rebellious type too using a dialog engine seems stupid to me why have that uber gigantic trigger when making dailogs is so simple with the way I do it with a simple wrapper function to get the player and your set :) |
| 12-06-2002, 06:28 AM | #14 |
Everybody shall decide on his own if he wants to use the engine. It's just easier just setting up a string with all captions and action triggers and call the engine trigger. Every dialog is just 2 rows in the GUI then. One to set the string and one to call the engine trigger. I really made the engine for myself to make life easier for me. And I thought of sharing it with others. For there are many people out there who don't know how to get the clicking player or who cannot even initialize a dialog. If you know JASS, feel free to write your own dialog triggers. If you need help, you can look at the dialog engine's triggers. Maybe you want to copy/paste something. Just a suggestion. The only thing that's important: Make cool maps!:D |
| 12-06-2002, 11:00 AM | #15 |
Guest | I tried Iki's engine already. And well. . . . i couldn't really understand how to use it. I knew it was a dialog engine but i was expecting a program not a war3 map. So...YUP:D im sticking with making my own since i have total control!:ggani: |
