• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] How to change integer with chat string?

Status
Not open for further replies.
Level 20
Joined
Jul 6, 2009
Messages
1,885
Integer = S2I(Substring(Entered chat string, StringLength("-host "), StringLength(Entered chat string)))
Substring function takes original string and positions of first and last characters of substring in original string. For example, Substring("Stan", 1, 4) is "tan".
 
Status
Not open for further replies.
Top