HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

dialog boxes

07-10-2003, 10:35 PM#1
Vilex
i want to make it so like on some TD u can select hard easy or meduim and it does it by health i want to have 3 choices like that and if they choose easy i want it so like footmen health is 100 meduim is 200 hard is 300 get it?
07-10-2003, 10:38 PM#2
weaaddar
and just what is the question now?
Yes, I understand what you want. What do you want from me (and aparently everyone else in the forum) and what are you having trouble with?
07-10-2003, 10:41 PM#3
Vilex
i dont really know how to make dialog boxes... i need help with the variables and the health thing...........basically i need help with it all:bangH:
07-10-2003, 10:52 PM#4
DvWizard
http://www.wc3campaigns.com/sections...ticle&artid=23
07-10-2003, 10:54 PM#5
Vilex
iv already read that tutorail and it doesnt really help
07-10-2003, 11:02 PM#6
weaaddar
the dialog box is the easiest part.

but heres an easy way to do the scaling of health.
Rather then actually creating 3 seperate units you will use the player handicap. Set the units that spawn to a different player (nuetral extra for example sake) then set the handicap to 200% or 300% (thats for hard) then transfer the units back to the enemy.
Why do it this way? That way you don't have to scale everything (for instance a boss has 50k hp if you multiplied his health by 3 he'd be damn near impossible to kill and everyone would call you map rigged and you a retard).

As for the dialog create a dailog variable and 3 dialog button variables.
I'll walk you through this but I've never used them in GUI so I'm only going to guess how to do it that way.

event fixed time event launch at 1 second
Actions:
Dialog add button Easy to dialog Dialog
Dialog Add button Meduim to dialog Dialog
Set variable DB2= last created button
Dailog Add button Hard to dialog Dialog
Set Variable DB3=Last created button
Dialog- Set title="Difficulty?"
Dialog Show Dialog for player 1

Now for your reaction trigger
Event: Clicked button for Dialog Dialog
Action
If Dialog button clicked =DB2
then
Player handicap for Nuetral Extra to 200%
If dialog button clicked = DB3
then
Player Handicap for Nuetral Extra to 300%
else nothing.

As for your spawn triggers I don't know what they look like But have them spawn everything for nuetral extra then move it to the Nuetral hostile or whatever your enemy player is. You can also use this as a way to make some units difficulty free (like the first 10 levels will always have the same difficulty (easy) so you get some cash).
As for why there is no variable or reponse for easy its because theres no need to set the handicap when its already defualted at 100.%
07-10-2003, 11:43 PM#7
Vilex
would the variables be what??? dialog?
07-10-2003, 11:52 PM#8
LordAllout
Quote:
Originally posted by 1)ark-1)ragon
would the variables be what??? dialog?



Quote:
As for the dialog create a dailog variable and 3 dialog button variables.