|
Morfaroth Beginner
Joined: 07 Dec 2002 Posts: 11
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
darmir Sorcerer
Joined: 10 Oct 2000 Posts: 706 Location: USA
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Feb 03, 2003 6:14 pm |
You should have replied in that thread.
Anyway, just rename the alias setcol to onroomcreate.
Kjata |
|
|
|
darmir Sorcerer
Joined: 10 Oct 2000 Posts: 706 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Morfaroth Beginner
Joined: 07 Dec 2002 Posts: 11
|
Posted: 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
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
darmir Sorcerer
Joined: 10 Oct 2000 Posts: 706 Location: USA
|
Posted: 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 |
|
|
|
|
|