 |
Laithrad Beginner
Joined: 04 Dec 2000 Posts: 14 Location: USA
|
Posted: Sat Dec 29, 2001 2:30 pm
variables |
Anyone else have problems with variables not correctly collecting things from a trigger for example
~--> *CHEER* (%w) has LEVELLED! Gratz to the (%w)!
with the variables being defined by the trigger each time example
#var name %1
#var title %2
I've tried it without the defining the variables each time and it still does the same thing. In previous version of Zmud before 6.22 it could collect the variable data even if someone leveled i sent a gratz then someone leveled 2 seconds later. now it will not update unless i manually have it update the variable (reset to default). Running zmud beta 6.24
Where ever I go CHAOS seems to follow. |
|
|
 |
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Sat Dec 29, 2001 3:22 pm |
You've got a lot of special characters in this pattern, including ~, >, and *. Each of these needs to be prefaced by the quote character, ~, so that they are treated literaly.
~~--~> ~*CHEER~* (%w) has LEVELLED! Gratz to the (%w)!
Troubadour  |
|
|
 |
Laithrad Beginner
Joined: 04 Dec 2000 Posts: 14 Location: USA
|
Posted: Sat Dec 29, 2001 3:26 pm |
the first ~ is too quote the beginning of the line. to prevent someone from gossiping/chatting the line that activates my trigger
Where ever I go CHAOS seems to follow. |
|
|
 |
bgunther Novice
Joined: 20 Dec 2001 Posts: 39 Location: USA
|
Posted: Sat Dec 29, 2001 3:57 pm |
quote: the first ~ is too quote the beginning of the line. to prevent someone from gossiping/chatting the line that activates my trigger
Umm... putting ^ at the start of your pattern makes it only match starting at the beginning of the line.
So your trigger pattern would be:
^--~> ~*CHEER~* (%w) has LEVELLED! Gratz to the (%w)!
Bob, aka Kayd on SWMud and a few others. |
|
|
 |
Laithrad Beginner
Joined: 04 Dec 2000 Posts: 14 Location: USA
|
Posted: Sun Dec 30, 2001 2:20 am |
okay ill try it... ill let you all know if it works im sure ;)
Where ever I go CHAOS seems to follow. |
|
|
 |
|
|