HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Chat String Conversion??

03-06-2006, 11:55 PM#1
Warlin
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
Zandose
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))))
Attached Files
File type: w3mtest.w3m (12.0 KB)
03-07-2006, 01:49 AM#3
Warlin
Thanks, Theres an error in your code though, it cant be an exact match
03-07-2006, 11:01 PM#4
Zandose
Wasn't to sure about that myself and did't want to test it.