HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I made an easy to use dialog engine!

08-15-2002, 10:02 AM#1
SuperIKI
This is it. It only uses one single trigger.
You set the variables and call it.
The trigger will create triggers that catch the 'button clicked' event and call the triggers that the user specified.
It's very easy to use.
I will release it to public for the community when I added hotkeys.
Comments and praise is welcome. :D
08-15-2002, 01:21 PM#2
Khaoz
It would appear you just did the opposite of what you intended. I dont know why exactly you need all those variables, and I still cant seem to understand what half of them actually do.
08-15-2002, 01:36 PM#3
SuperIKI
If you want to create a dialog for several players you just set these variables and call the 'Show Dialog' Trigger.
dialoginput_title is the title of the dialog
dialoginput_numberofbuttons is the number of buttons the dialog has
dialoginput_buttontext[0] is the text of the first button
dialoginput_buttontext[1] is the text of the second button
dialoginput_buttonclicked[0] is the trigger that is called when you press the first button
dialoginput_buttonclicked[1] is the trigger that is called when you press the second button
dialoginput_playerswhocansee is a player group containing all players who the dialog is shown to.

Calling 'Show Dialog' creates such a dialog and the click triggers are set to the buttons.

The main intent was to reduce it to one trigger and to make it possible to check what player clicked the button.
The variables are necessary to say the trigger what dialog should be created.
08-15-2002, 02:04 PM#4
SuperIKI
Read this to get to the explanation:
http://www.superiki.de/war3/dialog.html

It's not complicated. It's just:
1. Set variables
2. Call 'Show Dialog' trigger
3. Your specified custom trigger should run when a button is clicked.

AND YOU CAN HAVE 1 (ONE) TRIGGER FOR ALL 12 (TWELVE) PLAYERS.
They all will see the dialog.
Your specified clicktrigger will be called.
And in this trigger you can access WHICH PLAYER CLICKED IT!
08-15-2002, 02:13 PM#5
SuperIKI
uploaded the sample map to my webspace.
You can also get it here.

One trigger for all 12 players!
08-15-2002, 03:08 PM#6
3DGuy
Okay, first of all, none of your Dialog System's triggers work. I haven't downloaded your map yet because I can already see that you are just joking with it. You are basically not helping people, you are making beginners confused. They are all wrong, don't make me believe in your Dialog System. Because I already know.

Nice try....

Prove it to me that your triggers work 100%.

That's all, I don't want to start a flaming here.
08-15-2002, 04:06 PM#7
Mr.123
Well, I downloaded it, tore it apart, put it back together, tested it, tore it apart again, and put it back together. It works :).

It's what I would've done except I didn't want to put the time into writing and perfecting it. Good work SuperIKI!

Since you posted it up, I take it that you don't mind us using it in our maps. Will save me some time for my maps. :)

Might be time to have a separate section as a lot of utility triggers are being written.
08-15-2002, 04:47 PM#8
SuperIKI
Quote:
Originally posted by 3DGuy
Okay, first of all, none of your Dialog System's triggers work. I haven't downloaded your map yet because I can already see that you are just joking with it. You are basically not helping people, you are making beginners confused. They are all wrong, don't make me believe in your Dialog System. Because I already know.

Nice try....

Prove it to me that your triggers work 100%.

That's all, I don't want to start a flaming here.

You can't believe it, because you don't know the heart of the system: My handwritten trigger 'Show Dialog'.
Just try it, it works well.
Never mind... if you have enough time, you can stick with the normal triggers.

@Mr.123: I will appreciate it if you use my system. I like to help the community.

A separate utility trigger section is a very good idea!
08-15-2002, 04:53 PM#9
3DGuy
I truly apologize for what I've done, because I didn't really knew the purpose of it. Anyway, thanks for making another kind of Dialog System.

Peace
08-15-2002, 05:15 PM#10
SuperIKI
Quote:
Originally posted by 3DGuy
Peace

peace :)
08-15-2002, 07:09 PM#11
weaaddar
Honestly the method I use (Which Is burrowed from Unlucky_footman, thanks man) with parameters is alot easier. Ofcourse you got a love custom text like i do. Overall I suggest scripting anyday.
08-15-2002, 07:29 PM#12
SuperIKI
Yes, but you can't do it with parameters if you don't want to script.
So this is for the non-scripters out there. The normal What-You-Trigger-Is-What-You-Get guys.
Of course, you could pack all that stuff in a function and call it.
Or you must add a new action to the worldeditor. But how can you do that?
08-16-2002, 07:18 AM#13
Ari
SuperIKI, I just took a look at your map. While the proof-of-concept part isn't up my alley (I don't need to create what you are describing), I was interested in your use of hotkeys. In your triggers, you create (although don't define) hotkeys for "button 1" and "button 2" that then seem to be refered to in your custom text trigger. When I defined the values, lo and behold, pushing the defined key selected that particular option.

My question to you is if there is a way to create hotkeys without using cusom text (which I am as yet unfamiliar with). If not, could you please explain what exactly you were doing in that custom text trigger? Also, if you're familiar with this stuff, is there a way to highlight the hotkey in the menu (so that it's a different color that the rest of the button)? Thanks a lot.
08-16-2002, 11:01 AM#14
SuperIKI
My system is only better than the normal one for multiplayer maps where several players view the same dialog. If you're making a single player map, you can keep the normal system (You know who clicked the button, if there's only one player)

Hotkeys only work with custom text (or with my engine, because that's written in custom text).

Read this:
http://www.wc3campaigns.com/forums/s...&threadid=1688
08-16-2002, 01:14 PM#15
tuigi
hehe this seems good ans easy just what i wanted
and yet another newbie gets more knowledge tnkz man