| 03-06-2006, 11:55 PM | #1 |
Got another probelm How do i make it so when someone types like -number 900 it saves the '900' part in a variable? No Jass if possible |
| 03-07-2006, 01:42 AM | #2 |
Code:
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -number as An exact match
Player - Player 2 (Blue) types a chat message containing -number as An exact match
Player - Player 12 (Brown) types a chat message containing -number as An exact match
Conditions
Actions
Set Integer[(Player number of (Triggering player))] = (Integer((Substring((Entered chat string), 9, 11)))) |
| 03-07-2006, 01:49 AM | #3 |
Thanks, Theres an error in your code though, it cant be an exact match |
| 03-07-2006, 11:01 PM | #4 |
Wasn't to sure about that myself and did't want to test it. |
