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
billaben
Wanderer


Joined: 02 Sep 2005
Posts: 60

PostPosted: Sun Sep 11, 2005 3:04 am   

Automapper Follow mode
 
I am looking for a way to load a class which is ONLY enabled when the mapper is in follow mode. Is there another default class that automatically does this? If not can someone think of a way to get things to work this way?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Sep 11, 2005 10:57 am   
 
You can detect the mapper state with the following snippet
Code:
#IF ((%roomname!="")&(%trigger(AutoMapperAll))&(%trigger(AutoMapper)=0)) {#NOOP Window open, mapper on, not in Map mode=follow mode} {#NOOP failed conditions for follow mode}
You will need a trigger of some sort to do the test and set your class on and off. If you put both your test trigger and your class within the AutoMapperAll class then you can shorten the test and the Off mode of the mapper will automatically turn both off. I would suggest something like #ONINPUT {^%t$} since the mapper only does things when a direction is sent.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
billaben
Wanderer


Joined: 02 Sep 2005
Posts: 60

PostPosted: Sun Sep 11, 2005 6:01 pm   
 
OoooooOooooo.... That's great. I'll have to study up on some of those functions to make sense of that but I like it.

Thanks much.
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