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


Joined: 27 Nov 2001
Posts: 11
Location: USA

PostPosted: Wed Nov 28, 2001 11:08 pm   

window trigger help
 
[auction] Happy poos <----first case
> Happy [auction] wah <----secnod case
Happy [auction] bleh <----third case

how could i make a trigger to catch all 3 and throw them into one window

(%w)* {[}auction{]} <--- what i have so far... only works on first case though

Pin - we can all be immortal!
Reply with quote
Acaila
Apprentice


Joined: 30 Aug 2001
Posts: 187
Location: Netherlands

PostPosted: Wed Nov 28, 2001 11:21 pm   
 
Just keep it simple I guess, so did you try the following?

#TRIGGER {~[auction~]} {#CAP Auction}

Acaila
Reply with quote
pin53
Beginner


Joined: 27 Nov 2001
Posts: 11
Location: USA

PostPosted: Thu Nov 29, 2001 10:42 am   
 
Didnt work... dont know hwy.. using 6.22 beta btw
Reply with quote
pin53
Beginner


Joined: 27 Nov 2001
Posts: 11
Location: USA

PostPosted: Thu Nov 29, 2001 12:08 pm   
 
Also how can you check if a class is on a off.. .like put it in an if statement?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Nov 29, 2001 1:01 pm   
 
You can use %trigger to check if a class is enabled or not. Example:
#IF (%trigger(ClassName)) {#SH Class is enabled.} {#SH Class is not enabled.}

Kjata
Reply with quote
pin53
Beginner


Joined: 27 Nov 2001
Posts: 11
Location: USA

PostPosted: Thu Nov 29, 2001 1:44 pm   
 
Thank you...

Ok a maybe more than newbie question

Room Name
Obvious exits are ....
(blank line)
----------------------------------------
Another Room
Obvious exits are ....
(blank line)
Monster ---


I want to build a trigger that can detect if there is or is there not a monster in the room, dependant on the roomname also

So first roomname enables the trigger.. then it searches to see if there's a monster, if not... (do command) (Thanks in advance)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 29, 2001 7:07 pm   
 
Probably the best way to do room-dependent actions is to use a room script. You can find instructions in the helpfile, it's the last entry under Introduction to Mapping in v6.15.

If Acaila's script doesn't work you've probably changed your special character assignments, either change them back to the default or alter the script to match. It's also possible, since you're using the beta version (and really ought to be asking your questions on the beta forum), that it's a verson-specific problem, in which case we won't be able to help you on the General forum.

LightBulb
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