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
Morfaroth
Beginner


Joined: 07 Dec 2002
Posts: 11

PostPosted: Mon Feb 03, 2003 10:36 am   

Changing the Color of a Room in the Map
 
Is there an easy way to change the color of the current room your in in the map for a set amount of time, then change it back? I want to make a trigger that will mark a room that I've stolen from npcs in, Then after a set amount of time it changes the room back to normal

Let me know if you can think of a way to do this, Thanks in advance
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Feb 03, 2003 1:20 pm   
 
If you are not using the newest beta version, this should work:

#TRIGGER {You steal from an npc} {#VAR roomnum %roomnum();#NOOP %roomcol(, "red");#EXEC {%concat("#ALARM {+5} {#NOOP %roomcol(", @roomnum, ", grey)}")}}

This changes it back after 5 seconds. Also, you need to be in Map mode, not Follow mode, or at least use %maplocked to unlock the map.

Kjata
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Mon Feb 03, 2003 4:33 pm   
 
Kjata,
Have you figured out how to get the newest version 6.53 oncreate alias to work.
I am trying to get it to work using some of the trigger you helped me with in the following post:
http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=9838&FORUM_ID=7&CAT_ID=1&Topic_Title=Changing+room+color+in+mapper&Forum_Title=zMUD+General+Discussion

Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Feb 03, 2003 6:14 pm   
 
You should have replied in that thread.

Anyway, just rename the alias setcol to onroomcreate.

Kjata
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Tue Feb 04, 2003 8:58 pm   
 
I don't see a setcol in that script.

Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Feb 04, 2003 9:42 pm   
 
In this script no, because this script does something completely different from what you wanted in the other thred. Refere to the script I posted in the thread where you initially asked on coloring the rooms and it does have a setcol alias.

Kjata
Reply with quote
Morfaroth
Beginner


Joined: 07 Dec 2002
Posts: 11

PostPosted: Wed Feb 05, 2003 10:10 am   
 
Another quick question, How would I make it so that it puts the temporary triggers to recolor the room in a class? I plan to have it change the room color after periods of more like a half hour, So after a while a few might build up. Thanks
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Feb 05, 2003 1:03 pm   
 
Change:
#EXEC {%concat("#ALARM {+5} {#NOOP %roomcol(", @roomnum, ", grey)}")}

to:
#EXEC {%concat("#ALARM {+5} {#NOOP %roomcol(", @roomnum, ", grey)} tempClass")}

Kjata
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Thu Feb 06, 2003 4:06 pm   
 
Kjata,
Oops! My bad. I wasn't thinking there. Thanks alot Kjata.

Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
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