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
Yarryarr
Newbie


Joined: 11 Nov 2005
Posts: 4

PostPosted: Fri Nov 11, 2005 7:58 pm   

Room script?
 
I'm trying to combine the map function with a mining alias so that when I enter a room, I mine it, but only the first time I enter. I've tried making a variable to tell me I've already mined in the room script, but like it's supposed to, it resets when I leave the room. Is there a way, short of making a variable for every room I plan on visiting, to do this?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Nov 11, 2005 10:24 pm   
 
Unless you want to use the alias for manual mining or the mining effort is long and drawn out (several messages or commands to send to the mud), you really won't need the alias. Just pop this in the room script and it will execute automatically as needed.

#if (%ismember(%roomvnum(),@RoomsMined) = 0) {minealias;#additem RoomsMined %roomvnum()}

If you don't want to mine in rooms you already mapped before this project, you will have to add these vnums manually.

NOTE: it might just be corruption in my map or that I normally don't use roomscripts and thus I'm making some obvious mistake (or just a speedwalking bug of some sort), but I've had room scripts totally mess up my speedwalking to the point where I can't use the mapper double-click to speedwalk feature in any direction going towards the room-scripted room. This usually occurs when I enter the room with the room script and then leave before the room script-created triggers fire (it appears that the _MapperRoom folder or whatever it's named is getting deleted but triggers and anything it contains maybe isn't--since I can't see the folder in my settings files except for when I'm in the room with the room script I really can't tell for sure.)
_________________
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