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
technomage
Beginner


Joined: 18 Jul 2002
Posts: 13

PostPosted: Tue Nov 12, 2002 11:24 am   

cant'make it fully work
 
i have this almost working trigger
#TRIGGER {Edge City's Questmaster exclaims '{Clandestine's most heinous criminal|An enemy of mine}, {a|an|the} (*), {is terrorizing newbies!|is making vile threats against the IMPs!}'} {#var mob {%1}} "autoquest"

the problem is that if there isnt any of the 3 choises i wont work
i have tried it in several ways, but i cant figure out how to make it work
the line is like this
Edge City's Questmaster exclaims 'An enemy of mine, imperial cityguard, is making vile threats against the IMPs!'
i want to put the mob into variable
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Nov 12, 2002 12:00 pm   
 
#TRIGGER {Edge City's Questmaster exclaims '{Clandestine's most heinous criminal|An enemy of mine}, (*), {is terrorizing newbies!|is making vile threats against the IMPs!}'} {#var mob {%1};#IF (%ismember(%word(@mob,1),"a|an|the")) {mob=%trim(%remove(%word(@mob,1),@mob))} "autoquest"
Reply with quote
technomage
Beginner


Joined: 18 Jul 2002
Posts: 13

PostPosted: Tue Nov 12, 2002 1:10 pm   
 
ismember is case sensitive?
Reply with quote
technomage
Beginner


Joined: 18 Jul 2002
Posts: 13

PostPosted: Tue Nov 12, 2002 3:05 pm   
 
it is

is it possible to override a global alias for a room so if i leave the room the alias will
reset back to the original?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Nov 12, 2002 5:03 pm   
 
Should happen already. Try testing it out and see what happens.

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Nov 12, 2002 6:44 pm   
 
To reduce the complexity of that trigger a bit:
#TRIGGER {Edge City's Questmaster exclaims '*, (*), is } {#var mob {%1};#IF (%ismember(%word(@mob,1),"a|an|the")) {mob=%trim(%remove(%word(@mob,1),@mob))} "autoquest"



LightBulb
Senior Member
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