Warcraft III resources & community, 2003–2006 · archived

how to make the blue box?

5 posts
#1

how to make the blue box?

in some of the games, such as Real Life for Morons, when you level up, a blue box appears and u can choose to add strength, intelligence or agility. How do u make the blue box?
#2
I haven't played RL for Morons, but I'm guessing that it's a dialog box. This isn't exact, as my WE isn't open.

Events
Unit - A unit gains a level

Conditions
Leveling hero equal to (your hero)

Actions
Create a dialog box named LevelBox
Set LevelBox to Last created Dialog Box
Create a dialog button for Last created dialog named Strength
Set StrengthLevel to Last created dialog button
Create a dialog button for Last created dialog named Agility
Set AgilityLevel to Last created dialog button
Create a dilaog button for Last created dialog named Intelligence
Set IntLevel to Last created dialog button

And the next trigger is:

Events
A dialog button is clicked

Conditions
Clicked dialog equal to StrengthLevel

Actions
Modify Strength of (your hero): Add (amount of strength to add)

And do the same for agility and intelligence.

Dragon_Lord
#3
I have a tutorial on the "Blue Boxes" AKA Dialogue Boxes!!! Check the Tutorial section!!!
#4
What dragon lord said was about 50% correct. really, all that stuff can be made in a MAP INI trigger and use this trigger for displaying the box.

Events
Unit - A unit gains a level

Conditions
Leveling hero equal to (your hero)

Actions
Show dialog - Show LevelBox for owner of leveling hero

Then add a seperate trigger (you only need one) for the adding stats. If you need, i have a few demo maps on dialog boxes if you need.
#5
Well hey take it easy :D I've been on WoW so I'm.... out of... practice? :lol: