• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Setting Local's

Status
Not open for further replies.
Level 5
Joined
Jun 30, 2005
Messages
79
I was wondering if there is a way to set a variable to a local witout using jass. I herd there is a custom script function wich can makes a variable local. So anyone know a way to make a variable local witout the use of jass?
 
Level 10
Joined
Jul 14, 2004
Messages
463
I'm not sure if I understood you correctly, but when you declared the local via custom script, you'll need custom script again every time you use the variable. To set a variable in JASS, just write
Code:
set variable1 = VariableOrFunction2
and variable1 will be set to the value that results of the right side of the "=". Don't forget to add udg_ before the names of globals you declared in the variable window.
 
Status
Not open for further replies.
Top