HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Problem.

10-05-2002, 02:56 PM#1
Guest
I have a map that i wanted a dialog to change weather and time. I have 4 dialog. Dialog1 is time and dialog2 is time again since there well be no more room then 5. Dialog 3 and 4 is weather.

This is the problem.

When i say dialog1 it didn't show up. None of the other 1 show up. So I tried to make a unit walk into a circle of power. there is 4. And it still didn't show up!
10-05-2002, 04:39 PM#2
SuperIKI
And once again, these will show up:

Problems with dialogs? Or do you just want to shorten your code? Get the dialog engine!
10-05-2002, 04:46 PM#3
Guest
Problem with dialog.

I can't fix it so can someone help me on this trigger?
It seem like the box that has the buttons wont show.
10-05-2002, 04:47 PM#4
weaaddar
SuperIki your dialog engine has one severe problem it only uses 4 buttons my wrapper function used in dialog test III (bag and stat demo) allows 5 and is cleaner, though illegible code.
10-05-2002, 04:56 PM#5
Draco
You could also create your own dialogs. Just make a dialog variable and dialog button array; then do this...

- - -
[Trigger (H)]

EVENT - Player (X) skips a cinematic (or whatever you want to trigger the dialog.

ACTIONS:

- Dialog - Clear Dialog (Y)
- Dialog - Change the title of dialog (Y) to "blahblahblah"
- Dialog - Create a button for dialog (Y)
- Set Variable - Set DialogButton (0) to last created dialog button.
- etc. to create more buttons.
- Dialog - Show Dialog (Y)

- - -
That will set up the first one. You can just use the same dialog for every dialog box as long as you change the dialog button variables. Don't do this if multiple people can use the dialog though. I have only used dialogs in single player, so I'm not sure what would happen in multiplayer. You can use dialog arrays as long as you assign them ahead of time.

BTW - Use the Event - Player clicks a button on Dialog Y to cause actions after the dialog appears, and the Condition - Clicked dialog button equal to DialogButton (Z), to detect which button was clicked.
10-05-2002, 05:57 PM#6
Guest
What does array do? and i don;t understand the condition
10-05-2002, 07:08 PM#7
weaaddar
Draco my thing is meant for multiplayer I do pure code method of doing it unlike some engine but I use a wrapper function which makes me like oh I don't a million times easier
10-05-2002, 09:33 PM#8
SuperIKI
Quote:
Originally posted by weaaddar
SuperIki your dialog engine has one severe problem it only uses 4 buttons my wrapper function used in dialog test III (bag and stat demo) allows 5 and is cleaner, though illegible code.

Sad day. :nono:
I would laugh about your stupidity, but I think that you just want to argue with me. Makes me kinda sad.
I was disappointed when I read your post to zepir, but that's a different thing. Your little fight on protectors does not belong here. And so does your dishonesty! Did you get me?
I'm very disappointed weaaddar. I think you and me and very many other people know that what you said is just not true.
Of course the dialog engine fully supports all 5 buttons. What drove you to say it would only support 4??? :nono:
I want you to apologize in this very thread for the things you said about my engine. The engine was hard work, saves a lot of work and I serve it for free. You have no reason to lie about it just to make people think it was crap!
10-06-2002, 11:16 PM#9
Draco
Quote:
What does array do? and i don't understand the condition

- DarkForce9999


An array is just a set of variables. It makes things more simple. For instance, instead of five variables for dialog buttons 1,2,3,4, and 5; just make a dialog button 'array' (It's in a check box when you create a variable)


The condition checks which dialog button was pressed. What don't you understand about it.

Oh and weaaddar, your dialog thing and SuperIKI's are probably better than my way, but I'd rather do things my own way.
10-06-2002, 11:45 PM#10
weaaddar
wait superiki I swear on one of our earlier arguments you siad that the max button integer returned was 4. I may have misinterpreted but doesn't mean its max buttons is...4? Ah now I just reread the post 0-4 silly me sorry superiki I forgot the Zero :).
You really should change the return integer from 0-4 for stupid (as your saying) people like me. I think in a logical way like most of the retarded blizzard.j functions which take the returned value and add 1 to them to make them use counting 1-Infinity instead of natural 0-infinity.
Draco as much as I'd agree that its great to try your own way (Which is why I've mastered my wrapper function) you should always try to adept take the best of your way and mix it with some other methods. THis way you will always stand on-top. :)