Question: String Variable Activation Modes

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

Moderator: Cheaters

Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Question: String Variable Activation Modes

Post by Arabidnun »

SOLVED
Thanks Bartimaeus
Spoiler:
All you guys know the systems -rdem and -arusm(the most popular modes in games).

Well, I was trying to do a shortcut(which failed horribly)....


Basically this is what the trigger looked like.

Untitled Trigger 001
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
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 2, 4)) Equal to aa
(Substring((Entered chat string), 4, 6)) Equal to aa
Then - Actions
Game - Display to (All players) the text: BOO!, I don't care ...
Else - Actions


When i typed:
-bbaa
-aa

It totally worked, But, if i typed -aabb, Nothing happened....Why? I mean the 2-4 string is aa, then how come its not working!

Any suggestions on my string problem?
Last edited by Arabidnun on September 6th, 2008, 11:02 am, edited 2 times in total.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Question: String Variable Activation Modes

Post by Ozzapoo »

(Substring((Entered chat string), 2, 4)) Equal to aa
(Substring((Entered chat string), 4, 6)) Equal to aa
This means that both SubString(2,4) AND SubString(4,6) have to be aa, otherwise it won't do anything!

So as long as your string begins with "-aaaa" then it will do something ;)
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Question: String Variable Activation Modes

Post by Arabidnun »

Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 2, 4)) Equal to aa
(Substring((Entered chat string), 4, 6)) Equal to aa

No, this. I want it to check if 2-4 has aa, OR 4-6 has aa, and it still doesn't work.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Question: String Variable Activation Modes

Post by Bartimaeus »

Try 2,3, and 4,5 instead of 2,4, and 4,6.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Question: String Variable Activation Modes

Post by Ozzapoo »

Arabidnun wrote:Or - Any (Conditions) are true
Oh woops... Didn't see that.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Question: String Variable Activation Modes

Post by Arabidnun »

Np Ozzapoo, I will try that Bartimaeus
User avatar
risker
Forum Staff
Posts: 351
Joined: June 8th, 2008, 3:05 am
Location: Australia

Re: Question: String Variable Activation Modes

Post by risker »

What is with these mods i've never seen ever before ?
xD

They just pop outa no where
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Question: String Variable Activation Modes

Post by Arabidnun »

Um, -rdem comes from dota,
-arusm comes from Naruto Sw