Gold
Events
Player - Player 1 (Red) types a chat message containing g as An exact match
Conditions
(Substring((Entered chat string), 1, 1)) Equal to g
Actions
Player - Add (Integer((Substring((Entered chat string), 3, 10)))) to (Triggering player) Current gold
Because its not. this is just in a normal Melee map
Hm. Right now, your code says that if red types " g 10000000", it will give him that much.
If you want a dash, period, space, whatever at the beginning, leave it as it is. But if you just want it to be "g XXXXXXXX", then you should change 1,1 to 0,0 and 3,10 to 2,9.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
Events
Player - Player 1 (Red) types a chat message containing g as An exact match
Events
Player - Player 1 (Red) types a chat message containing g as As a subtring
Conditions
(Substring((Entered chat string), 1, 1)) Equal to g
Actions
Player - Add (Integer((Substring((Entered chat string), 3,(Length of ( Entered chat string)))))) to (Triggering player) Current gold
Btw how the hell u copy paste from we to forum?You don't actually write all that code ,-,??
edit: bah i thought thats ure sig and i didn't read anyway can somebody answer my question
~Everything changes~
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.
Melee Initialization <-- Right click here.
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)