Warcraft III resources & community, 2003–2006 · archived

Changing a variable?

3 posts
#1

Changing a variable?

How is the easyest way to changing a variable that represents the number 110? to whatever number betwen 1-4000 ? i know i just need to make a trigger like: player writes: "1300" as substring set variablevalue 1300. somthing but if i need to do it with every number betwen 1 and 4000 it gonna take long time anny easy way to do this?
#2

ops

i mean like player write valu = 1300 or only 1300 or valy 1300 in chat? can a variable be affected in such a way`?
#3
Events
Player x types -value as a substring
Conditions
(none)
Actions
set Value = Convert String To Integer ( Substring( Entered Chat String, 8, Length of Entered Chat String ) )