Help with Substring Triggers

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Net_Creator
Junior Member
Posts: 25
Joined: May 2nd, 2007, 3:37 pm
Title: The Crazy One
Location: Wherever I am.

Help with Substring Triggers

Post by Net_Creator »

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
Below statement is true.
Above statement is false.
-----
Mindboggling? Nah.

Net_Creator
Vuen's Dungeons and Dragons Administrator
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

I am not really sure what you're asking... if you could go into more in-depth detail on what we are spawning, where, why.. and uh. yeah :p

Edit: ok I reread it. lol.

events - player types -spawn as a substring

actions spawn (number = substring > entered chat string > 7,10) should work fine.
Net_Creator
Junior Member
Posts: 25
Joined: May 2nd, 2007, 3:37 pm
Title: The Crazy One
Location: Wherever I am.

Thanks!

Post by Net_Creator »

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...)
Below statement is true.
Above statement is false.
-----
Mindboggling? Nah.

Net_Creator
Vuen's Dungeons and Dragons Administrator
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

I dont really... know whats wrong, =/