Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
resolute6036
Newbie


Joined: 03 Mar 2016
Posts: 2

PostPosted: Thu Mar 03, 2016 11:25 pm   

Marking room for return with %roomvnum
 
I have a grid mapped and I'm wanting to set a script to save the room I'm in so that I can run to a shop and return to my spot in the wilderness and continue to move down the path.

Currently I have this but I'm doing something wrong and I'm not sure what it is:

#alias save {@currentroom = %roomvnum()}
#alias return {#WALK @currentroom}

Additionally what I'm looking to do is that the room names are pretty uniform by zone so I wasn't sure if setting a path was the only way to search a given area for random spawns. I was thinking that if I can get the above to work that I could use the mapper to walk all rooms named "A grassy plain" and search for gophers, stopping at gophers to kill the gophers and save the room number to run to shop, sell and return.

I would appreciate any direction even if its just to nitpick my inept syntax.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Thu Mar 03, 2016 11:56 pm   
 
you dont use the @ character when defining the variable, only when referencing it.

#alias save {currentroom = %roomvnum()}
_________________
Discord: Shalimarwildcat
Reply with quote
resolute6036
Newbie


Joined: 03 Mar 2016
Posts: 2

PostPosted: Fri Mar 04, 2016 12:04 am   
 
That was quick, I'll give it a test. Thanks a lot.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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