HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Variables - How to?

07-01-2005, 02:42 PM#1
EnZ
How do i go about Making a Certain Unit Into a Variable

I know its "Set Variable (Insert Something Here) thats all i know lol
07-01-2005, 03:17 PM#2
Setreal
First off you need a variable to set the unit to.

Action -> Set Variable -> Edit Variables -> New Variable

Name the variable whatever you want and set the type to Unit (unit).


Then to set a unit to this variable.

Action -> Set Variable -> Choose the variable you just made from the dropdown = whatever unit you want it to be.

And you're done.
07-01-2005, 04:44 PM#3
iNfraNe
Quote:
Originally Posted by Setreal
First off you need a variable to set the unit to.

Event -> Set Variable -> Edit Variables -> New Variable

Name the variable whatever you want and set the type to Unit (unit).


Then to set a unit to this variable.

Event -> Set Variable -> Choose the variable you just made from the dropdown = whatever unit you want it to be.

And you're done.
Action* , not event

or just click the yellow "X" on top of the trigger screen
07-01-2005, 09:46 PM#4
Setreal
Ah yeah action my mistake.
07-02-2005, 01:04 AM#5
Limb_Smasher
You can also make a unit variable and set it in mid-game, by creating an action it will do and then Set UnitVar = TriggeringUnit
Variables - How to? - Wc3C.net