Okay, I'm working on a map. Technically, an arena. I want to be able to change the spawn rate ingame from 5 to 30. I did this a hard way, but it was still messed up, because as I typed sentences with "spawn" in them, my trigger gave me back my error message I put in. Can someone write up a code including substrings so player 1 (red) can type in "spawn #" being from 5 to 30 for me? Thank you, very much!
- Net_Creator
Vuen's Substring-annoyed Dungeons and Dragons Administrator
Help with Substring Triggers
Moderator: Cheaters
-
- Junior Member
- Posts: 25
- Joined: May 2nd, 2007, 3:37 pm
- Title: The Crazy One
- Location: Wherever I am.
Help with Substring Triggers
Below statement is true.
Above statement is false.
-----
Mindboggling? Nah.
Net_Creator
Vuen's Dungeons and Dragons Administrator
Above statement is false.
-----
Mindboggling? Nah.
Net_Creator
Vuen's Dungeons and Dragons Administrator
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
-
- Junior Member
- Posts: 25
- Joined: May 2nd, 2007, 3:37 pm
- Title: The Crazy One
- Location: Wherever I am.
Thanks!
Thank you a lot. Here, I copied my action. Take a look.
If ((Substring((Entered chat string), 1, 8 )) Equal to setspawn) then do (Set x = (Real((Substring((Entered chat string), 10, 13))))) else do (Game - Display to (All players) the text: |CFFCC0000Oops! Sor...)
If ((Substring((Entered chat string), 1, 8 )) Equal to setspawn) then do (Set x = (Real((Substring((Entered chat string), 10, 13))))) else do (Game - Display to (All players) the text: |CFFCC0000Oops! Sor...)
Below statement is true.
Above statement is false.
-----
Mindboggling? Nah.
Net_Creator
Vuen's Dungeons and Dragons Administrator
Above statement is false.
-----
Mindboggling? Nah.
Net_Creator
Vuen's Dungeons and Dragons Administrator
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA