|
geosmith Wanderer
Joined: 23 Apr 2005 Posts: 57
|
Posted: 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. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: Sun Jun 19, 2005 1:17 pm |
pMapLocked = %maplocked( )
#noop %maplocked( 0)
#noop %roomcol( ,red)
#noop %maplocked( @pMapLocked) |
|
|
|
KillerKitty Beginner
Joined: 15 Jun 2005 Posts: 21
|
Posted: 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
|
|
|
|
|
|