- Joined
- Feb 3, 2009
- Messages
- 3,292
Hello, I need help with making an alternative split function which works similar than in programming languages.
Say we have a command -say which takes 2 arguments (name, word)
Example usage in game:
-say Footman Yes my Lord
From the above it should save "Footman" into a variable ie. name and "Yes my Lord" into a variable ie. word.
I need this to make a command for the map which will write for the above example "Footman" in the color of the triggered player, followed by ": " and finally "Yes my Lord" in white after it.
Any ideas on how to go about making it?
Say we have a command -say which takes 2 arguments (name, word)
Example usage in game:
-say Footman Yes my Lord
From the above it should save "Footman" into a variable ie. name and "Yes my Lord" into a variable ie. word.
I need this to make a command for the map which will write for the above example "Footman" in the color of the triggered player, followed by ": " and finally "Yes my Lord" in white after it.
Any ideas on how to go about making it?