HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Giving Gold Question

07-16-2002, 08:00 AM#1
Guest
After hours of looking through the site...I couldn't find the answer. I was wondering how to make a trigger like this.

Where if someone types Give (Ammount of gold...can be ANY number (This part tricks me)) gold (Player Number). And it works. So anyone can type Give 3245 gold 6 and if they have it give it. I just can't find the right variable and it's giving me a headache.

Thanks and if someone could help me with the leaderboard a bit...I can't seem to put the player number next to it. Thanks guys!
07-16-2002, 07:44 PM#2
Guest
i would also like to know how to do this, especially the part about putting numbers next to player's names.
07-18-2002, 06:03 AM#3
Guest
Does anyone know how to store variables? Come on! Storing numbers someone types to use later should be hard. And the player thing should be extremely easy...please help people!
07-18-2002, 06:29 AM#4
dataangel
I recommend you read 3DGuy's voting tutorial:

http://wc3campaigns.com/modules.php?...orial+by+3DGuy

Although you're not trying to setup a voting system, it'll introduce you to how to use variables and stuff and afterwards you'll probably be able to figure it out. If not post back :)

(I suspect, since the tutorial doesn't cover it, that you may still have trouble with substrings, post back if you do)