• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] mode help

Status
Not open for further replies.
Level 4
Joined
Jul 1, 2009
Messages
65
Sorry i was looking for a tutorial or something on making a mode selection trigger. Kinda the same way Dota does there mode selection.

i can make one where it does it if u type -AR or -EM but i dun wanna make a trigger for each -AREM -EMAR -arem -emar -ar -em

and lots more if i add more.... i know there is a way... but i cant find it

This is what i have so far

Events
Player - Player 1 (Red) types a chat message containing - as A substring
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 2, (Length of (Entered chat string)))) Equal to td
Then - Actions
Else - Actions


I feel like it has to be equal to td so tdem wont work.....how can i make it just contain instead of equals
 
Status
Not open for further replies.
Top