Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Laithrad
Beginner


Joined: 04 Dec 2000
Posts: 14
Location: USA

PostPosted: 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.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: 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
Reply with quote
Laithrad
Beginner


Joined: 04 Dec 2000
Posts: 14
Location: USA

PostPosted: 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.
Reply with quote
bgunther
Novice


Joined: 20 Dec 2001
Posts: 39
Location: USA

PostPosted: 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.
Reply with quote
Laithrad
Beginner


Joined: 04 Dec 2000
Posts: 14
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net