• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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???
 
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:
 
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.
Back
Top