 |
Xolademoness Wanderer
Joined: 18 Jun 2004 Posts: 73 Location: United Kingdom
|
Posted: Mon Jul 24, 2006 3:04 am
make a trigger turn a specific room a colour,change name etc |
Is there any way to make a trigger turn a specific room a colour?
If it can be done relationally like to colour the room a certain amount of rooms in a certain direction from you in whatever direction that's even better but if Zmud is not capable of that, ok ;/
is there also a way to change other things, like whether to display the name of the room next to the room on the map through a trigger rather than through clicking in properties? |
|
_________________ mhm.. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jul 24, 2006 4:27 am |
| Quote: |
Is there any way to make a trigger turn a specific room a colour?
|
%roomcol(optional vnum (blank = current room), color (either a word like red/green/etc or an RGB value like $00FF00))
| Quote: |
If it can be done relationally like to colour the room a certain amount of rooms in a certain direction from you in whatever direction that's even better but if Zmud is not capable of that, ok ;/
|
Capable, just probably not without ZMapper. Either way, however, it's like building a skyscraper using nothing but a shovel and bucket of the kind normally associated with sandcastles.
| Quote: |
is there also a way to change other things, like whether to display the name of the room next to the room on the map through a trigger rather than through clicking in properties?
|
Nope. If it's not directly related to the room or link object, it's not exposed to any other part of ZMud. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Xolademoness Wanderer
Joined: 18 Jun 2004 Posts: 73 Location: United Kingdom
|
Posted: Mon Jul 24, 2006 3:45 pm |
| MattLofton wrote: |
| Quote: |
| If it can be done relationally like to colour the room a certain amount of rooms in a certain direction from you in whatever direction that's even better but if Zmud is not capable of that, ok ;/ |
Capable, just probably not without ZMapper |
I have zmapper... anyone know how I would do it? :) |
|
_________________ mhm.. |
|
|
 |
Xolademoness Wanderer
Joined: 18 Jun 2004 Posts: 73 Location: United Kingdom
|
Posted: Mon Jul 24, 2006 3:55 pm |
hey... I set up a trigger to make it colour a room green: room number 11445.... when the line starts with "A1"
I did it like you said, and like it says in the help for the command (i checked) but this trigger:
| Quote: |
| #TRIGGER {^A1} {%roomcol( 1145, green)} |
I tested it by doing
and it just makes
be sent as text into the mud for some reason, and doesnt change the colour of any rooms or do anything with the map... any idea why? :/ |
|
_________________ mhm.. |
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Mon Jul 24, 2006 4:19 pm |
% things are functions that return a value.
As you do not care for the value but rather are looking for the result do
#TRIGGER {^A1} {#NOOP %roomcol( 1145, green)} |
|
|
|
 |
Xolademoness Wanderer
Joined: 18 Jun 2004 Posts: 73 Location: United Kingdom
|
Posted: Mon Jul 24, 2006 6:24 pm |
Is there any way to toggle mapping mode on with a command?
It doesn't colour the room unless I turn it from walk mode to map mode on in the mapper, I was thinking maybe the trigger could turn it to map mode, colour the room then back to walk ...?
thank you again for the help much appreciated :) |
|
_________________ mhm.. |
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Mon Jul 24, 2006 8:39 pm |
You have two options:
maplocked
Syntax: %maplocked([0 or 1])
Sets or returns the maplocked state. When locked changes can not be made to the map. This state is automattically changed when switching to and from MapMode
and
#MENU {Mapper|File|*desired mode here*} |
|
|
|
 |
Xolademoness Wanderer
Joined: 18 Jun 2004 Posts: 73 Location: United Kingdom
|
Posted: Mon Jul 24, 2006 9:05 pm |
with %maplocked(0) I need a #NOOP before it too right?
|
|
_________________ mhm.. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jul 24, 2006 9:33 pm |
Technically, you should be using #CALL to suppress function return values instead of #NOOP, but traditionally and currently they are both interchangeable.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|
|