crazyfanatic
New Member
- Reaction score
- 20
For my map i want to make a mode system, but instead of making a trigger for each possible mode combination, i want to split the entered command into X different substrings. So can you tell me how to do it?
For instance: the mode entered is -cheese, where i need to split it into:
-A substring containing the "-", showing that a mode is being entered
-A substring containing "ch", maybe meaning Custom Hero mode
-A substring containing "ee", maybe meaning Events Enabled
-A substring containing the "se", maybe meaning Shared Experience
So can anyone help me?
For instance: the mode entered is -cheese, where i need to split it into:
-A substring containing the "-", showing that a mode is being entered
-A substring containing "ch", maybe meaning Custom Hero mode
-A substring containing "ee", maybe meaning Events Enabled
-A substring containing the "se", maybe meaning Shared Experience
So can anyone help me?