- Joined
- Sep 10, 2006
- Messages
- 185
I'm trying to figure out the whole substring thing for my map. I'm trying to make a command that when typed, will give the amount of gold to the player, providing the typer has the amount of gold. First, I'm trying to figure out how to use the substring stuff. This is what I tried.
(If you're wondering, for right now I made it give gold to myself so that I could test it myself)
Also, I'm not sure how to check if player 1 has enough gold to give to blue.
ty for any help
(If you're wondering, for right now I made it give gold to myself so that I could test it myself)
-
Gold
-
Events
- Player - Player 1 (Red) types a chat message containing -gold 02 as An exact match
- Conditions
-
Actions
- Set GOLDINT = (Substring((Entered chat string), 8, 9))
- Player - Add (Integer(GOLDINT)) to Player 1 (Red) Current gold
-
Events
Also, I'm not sure how to check if player 1 has enough gold to give to blue.
ty for any help