| 09-13-2003, 08:32 AM | #1 |
for the map i r making, i need the give gold command (-give ## ### gold) i dont care how complicated it is since i know a fair bit about the editor (not bragging) i think its converting strings to intergers? i may be totally off but w/e, theres alotta mpas out there (zoator, tower warz, etc) that have it, but most of em got protections, and i dont feel like trying to break them, thnks in advance :D |
| 09-13-2003, 11:31 AM | #2 |
Well you COULD just look at any map with a give gold command, I know there are plenty that are unprotected. Basically use substring to get the player number portion of the message, use convert to integer to turn it into something the get player from player number can use, mabe check thats a valid player (if you want) extract the gold amount in the same way, check the triggering player has enuff gold, if so, give that much gold to the receipient and deduct from the triggering player. |
| 09-13-2003, 03:34 PM | #3 |
This line "(-give ## ### gold)" is kinda confusing me as to what you want. But if you want to know how to give a player gold then it's Player - Add Property. Syntax looks something like this (underlined can be changed): Player - add 1000 to player1 (red) current gold You can add a negative number to subtract gold from the player. If you just want to find out how much gold the player has then it's Set (Your Variable) = player1 (red) current gold. I hope this is what you were looking for. |
| 09-13-2003, 04:39 PM | #4 |
ya, i know how tot work player properties, but do you convert the -give ## ### gold to variables? i guess ill got try some things in the editor |
| 09-13-2003, 04:45 PM | #5 |
Heres the triggers: ________________ E: Player [1] types [-give ] as a [substring] (repeat for all players elligible) C:_________________ [Triggering Player[Gold]] [Equal To or Greater Than] [String[Substring[Entered Chat String] = [10], [12]]] A:_________________ Add [String[Substring[Entered Chat String] = [10], [12]]] [Gold] to Player[Index[String[Substring[Entered Chat String] = [7], [8]]]]. Set [Triggering Player]'s [Gold] to [Arithmitic[Gold of Triggering Player] - [[String[Substring[Entered Chat String] = [10], [12]]]] This will crash the game if you type something like -give 0a 111, or something. Best idea is to repeat it for all players, so that it only gets the gold. |
| 09-13-2003, 04:52 PM | #6 |
for some reason when i dl it it dls a file called "atachment" so i cant download it, but i want to give up to like 10k :( |
| 09-13-2003, 04:57 PM | #7 |
didnt you even read mine? |
| 09-13-2003, 05:06 PM | #8 |
ya, its kinda confusing but im trying i found the "string" thing then i lsot it, and i cant find it again emote_sweat k this is REALLY confusing, the condition player propertie is an interger comparison right? well i go triggering players current gold is equel to or greater than ...... i cant find the string thing there, are you using an external editor? (umswe?) |
| 09-13-2003, 06:20 PM | #9 |
i found some bugs in my example map, going to post a new one tomorrow GMT+0800 bye..zzz...it's 2am here |
| 09-14-2003, 02:25 AM | #10 | |
Avatar and sig distracting, very nice uh, I'll try my best, it's a bit complicated, but really not that hard. Make two variables, two ints actually, here I use "GoldVar" and "PlayerVar" I wrote the trigger and it really should work I think, complete with error checking to ensure nothing should break. You might want to check that the player the gold is being donated to is actually able to use that gold (ie they are actually in the game). Quote:
|
| 09-14-2003, 04:27 AM | #11 |
hehehehe, my sig is so l337, wow thats sure sounds like its gonna work ill give it a try when im actually awake, its a lttile l8 where i am |
| 09-14-2003, 05:16 AM | #12 |
1 l33t example map ready for you to CnP into your map, just give me credit :) I give you: PHIL_123'S GIVE RESOURCE TRIGGER VERSION 2 http://www.wc3campaigns.com/forums/s...950#post150950 |
| 09-14-2003, 11:45 AM | #13 |
I have make a command give gold, it accept 1 to 6 number :D The command is Give XXX Y X = Gold Y = Player |
| 09-14-2003, 05:47 PM | #14 |
no offense but phil's has a leaderboard, probably just made it when he was screwin around, but your also has some uselesss stuff "you gived player gold" right....... |
| 09-23-2003, 01:06 AM | #15 |
WOW...Tara Reid is ****ing hot! |
