Variable Help PLS!

L

Lord_Solid

I dont actually understand variable function...I am master with the triggers and I know all of them , but I dont understand variables can u give information clearLy ?What does a variable do I need an explanation to understand ! :) THX
 

SephirothX89

Member!
Joined
May 19, 2003
Messages
1,074
Reaction score
0
Location
Azeroth
Website
Visit site
Lets say you want something to happen later in the game depending on if something happened earlier.

kinda like this...

Events - Unit enters region

Conditions - Entering unit equal to "your hero"

Actions - Set "VariableName" = True


then...


Events - A unit enters region

Conditions - none

Actions - If/Then/else
if all conditions are true, then do acions, else do else actions.
If Conditions- "VariableName" equal to (True)

Then actions - End game in victory for (owner of (entering unit))

Else actions - End game in defeat for (owner of (entering unit))


there may be some errors in the trigger but i hope that helps you understand variables.
 

IceDevil9

BattleForums Senior Member
Joined
Feb 19, 2003
Messages
3,418
Reaction score
3
Location
CA
Website
www.rcthaven.com
You know, not to be rude, but you can't be a 'Trigger Master' without having a clue as to what variables are.

-Frank :cool:
 

SephirothX89

Member!
Joined
May 19, 2003
Messages
1,074
Reaction score
0
Location
Azeroth
Website
Visit site
It's true, variables are 80% of triggers.
 
L

Lord_Solid

oh right thx now I am master :) how about boolean comprasion what does it do ?
 

HellThrone

Member!
Joined
Oct 17, 2003
Messages
295
Reaction score
0
Location
Hell
you're not a master, dont brag anyways.. just admit it you're new! I'm new too and i have nothing to hide. EVERYONE IM NEW TO MAKING TRIGGERS!!! im not dying am i?
 

HellThrone

Member!
Joined
Oct 17, 2003
Messages
295
Reaction score
0
Location
Hell
you're not a master, dont brag anyways.. just admit it you're new! I'm new too and i have nothing to hide. EVERYONE IM NEW TO MAKING TRIGGERS!!! im not dying am i?
 

HellThrone

Member!
Joined
Oct 17, 2003
Messages
295
Reaction score
0
Location
Hell
first off you're not a master, you're a NEWBIE!!!!!! dont act like its something to be ashamed of, we were all newbies at one time. EVERYONE IM NEW TO MAKING TRIGGERS ON WARCRAFT!!!!!!! see i didnt die did i?

--------okay my net just went extremely slow and f***ed up and it didnt show my post so mod delete those forst two..
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
Think of variables as storage warehouses to store data.

Variables are assigned types. In programming languages, by default, there are integers, floating-point numbers, strings, booleans, regular expressions, functions (and/or classes) and a few more that are unique to a few or solely certain languages. But Warcraft adds these types to sort variables out into ones that you can use. This is to prevent type-casting errors.
 

New threads

Top