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


Joined: 18 Jun 2004
Posts: 73
Location: United Kingdom

PostPosted: 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..
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Xolademoness
Wanderer


Joined: 18 Jun 2004
Posts: 73
Location: United Kingdom

PostPosted: 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..
Reply with quote
Xolademoness
Wanderer


Joined: 18 Jun 2004
Posts: 73
Location: United Kingdom

PostPosted: 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
Quote:
#ECHO A1
and it just makes
Quote:
32768
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..
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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)}
Reply with quote
Xolademoness
Wanderer


Joined: 18 Jun 2004
Posts: 73
Location: United Kingdom

PostPosted: 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..
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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*}
Reply with quote
Xolademoness
Wanderer


Joined: 18 Jun 2004
Posts: 73
Location: United Kingdom

PostPosted: Mon Jul 24, 2006 9:05 pm   
 
with %maplocked(0) I need a #NOOP before it too right?
_________________
mhm..
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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