|
billaben Wanderer
Joined: 02 Sep 2005 Posts: 60
|
Posted: 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?
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
billaben Wanderer
Joined: 02 Sep 2005 Posts: 60
|
Posted: 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. |
|
|
|
|
|