Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Autoattack Trigger....
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #15 on Tue 18 May 2004 09:05 PM (UTC) |
Message
| Demonica sprays you with Venom
non regexp:
* sprays you with *
(you need to add punctuation, etc)
Regexp:
^(.*) sprays you with (.*)$
(again, add punctuation, and anything else)
Send to: Script
Send:
setvariable "var1", %1
setvariable "var2", %2 |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Assassin
(73 posts) Bio
|
Date
| Reply #16 on Tue 18 May 2004 09:15 PM (UTC) |
Message
| Cheers Flannel
I was trying all sorts
| Top |
|
Posted by
| Assassin
(73 posts) Bio
|
Date
| Reply #17 on Tue 18 May 2004 10:30 PM (UTC) |
Message
| Flannel that aint working, its capturing the trigger
(cos ive coloured it green), but not sending anything
to my variables
| Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #18 on Tue 18 May 2004 11:52 PM (UTC) |
Message
|
Quote:
Actually.. It won't match on "A cow" anyway, since that is two words and you make no allowances for multiple words, only letters.
He had changed [A-Za-z]+ to A cow, so it would match. A bit late now for me though :p |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #19 on Wed 19 May 2004 12:26 AM (UTC) |
Message
| Assassin, Do you have scripting enabled? And what language are you using? I guess most of us default to VBscript.
You can get more information about the other languages usage of setvariable here:
http://www.gammon.com.au/scripts/function.php?name=SetVariable |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Assassin
(73 posts) Bio
|
Date
| Reply #20 on Wed 19 May 2004 06:46 AM (UTC) |
Message
| Scripting enabled yes, and VBscript | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #21 on Wed 19 May 2004 07:30 AM (UTC) |
Message
|
Quote:
setvariable "var1", %1
setvariable "var2", %2
Say you received:
Demonica sprays you with Venom
This would evaluate to:
setvariable "var1", Demonica
setvariable "var2", Venom
However Demonica and Venom won't exist (as variables) so the variables var1 and var2 will be empty.
You want this:
setvariable "var1", "%1"
setvariable "var2", "%2"
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
67,975 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top