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


Joined: 23 Apr 2005
Posts: 57

PostPosted: Sun Jun 19, 2005 1:53 am   

Colouring map rooms
 
Okay, I can deal with triggers and basic scripting, but functions are beyond me at the moment... which is fine, I don't have a lot of use for them, except in this one instance where I'm trying to make a trigger which would change the colour of the room I'm currently in on the map. I sort of worked out that I need to be using %roomcol, but can't get anything to work beyond that.

Say, for example I wanted the line "Your environment conforms to that of Urban." to set the room colour on the map to red... how exactly would I set that up?

Any advice would be appreciated, thanks.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Jun 19, 2005 2:58 am   
 
As long as you are in mapping mode you can do something like this, it will have to be modified to do it if you are in follow mode

#tr {Your environment conforms to that of Urban.} {#call %roomcol(,red)}

Note the coma in %roomcol its mandatory :p
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jun 19, 2005 3:03 am   
 
Well, you could just add a couple of #MENU commands to that to ensure you go into mapping mode before trying the #CALL and then ensuring you return to follow mode to prevent subsequent mapping catastrophe. To get even fancier (assuming this feature isn't already built into the mapper module), you could even build your own state machine to keep track of which state you are in.
_________________
EDIT: I didn't like my old signature
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Sun Jun 19, 2005 1:17 pm   
 
pMapLocked = %maplocked( )
#noop %maplocked( 0)
#noop %roomcol( ,red)
#noop %maplocked( @pMapLocked)
Reply with quote
KillerKitty
Beginner


Joined: 15 Jun 2005
Posts: 21

PostPosted: Sun Jun 19, 2005 6:12 pm   
 
Is there any way to make it colour rooms you are not actually in? On one mud there's a thing where you can see people moving in adjacent rooms... it would be cool to make it show on the map kind of radar-ish, perhaps with certain patterns giving different colours
_________________
www.bbc.co.uk/doctorwho
EXTERMINATE
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