• 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.

I need variable Help

Status
Not open for further replies.
Level 3
Joined
Aug 10, 2004
Messages
33
What I need is just to know like I have a trigger "A unit comes within range of unitX" Wat ype of variable can fit there im trying to make it a ward can anyone help me???
 
Level 5
Joined
Jul 11, 2004
Messages
183
XxDark_KingxX said:
What I need is just to know like I have a trigger "A unit comes within range of unitX" Wat ype of variable can fit there im trying to make it a ward can anyone help me???

Entering Unit ....

unit come within range
entering unit equal to XxDark_KingxX
set AmComing = Entering Unit
if Amcoming equal to RandyM4A1 then do Say hello
if Amcoming equal to XxDark_kingxX then do Kill Amcoming
ya kill him :lol:
 
Level 3
Joined
Jul 23, 2004
Messages
58
You need this type

The range within the unit comes is an integer type.

Let me give you an explanation about the common used variables:
Boolean = A boolean variable can only be true or false, like triggering unit is in region ... true
Integer = An integer is always a number f.e. 256 or 100. Used for level of unit, range, gold amount and many more...
String = A string is a word used for names or whatever. You can also use substring maybe like: Player Chatmessage as a substring.
Real = hmmm... i don't know yet but i don't use it often.

You can also use conversions like: convert integer to string (very useful!!!)

Hope this would help you.

----------------------------------
Current Projekt: Diablo the Legend
Quests: 0%
Items: 100%
Units: 100%
Game Progress: 100%
Bugs: 3 which i know...
----------------------------------
 
Status
Not open for further replies.
Top