HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Agravating Trig Question

04-29-2003, 08:19 PM#1
Hessgasoline
Alright. Here is the question.
Say here is something you type in.
PW100000000000000
Now
I want a trigger to take place if the 2 letters PW are in the message. But this stupid WE won't let me. And I can't do it with conditions because there isn't any Just. If a player types a message...theres always a Player Types This.
I've tried Substrings, Exact and I can't get it to work! Someone Please help me! ( Its for a password ):bgrun:
04-29-2003, 08:39 PM#2
Guest
I think you do it like this


EVENTS

Player 1 Red types a chat message containing <Empty String> as a substring

CONDITIONS

Substring((Entered chat string), #, #)) equal to Whatever......

ACTIONS

Blah blah blah....


I think that's how you want it. If this isn't what you mean, just post again and i'll try to help..
04-29-2003, 08:49 PM#3
DaKaN
the 2 number inputs in the substring are the starting and ending chars that must match the string you set in the condition:

example:

PW1234567890

substring(entered chat string(), (4,6)

will get the chars:

234
04-29-2003, 08:52 PM#4
Hessgasoline
Wizard You go Man!!! You fixed me evil problem i've been trying to fix all day. Dakan..sorry to say but I already knew that...But that information is still helpful for the WE Newbs/Noobs/Newbies/Whatever you want to call them. Thanks a ton.