|
resolute6036 Newbie
Joined: 03 Mar 2016 Posts: 2
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
resolute6036 Newbie
Joined: 03 Mar 2016 Posts: 2
|
Posted: Fri Mar 04, 2016 12:04 am |
That was quick, I'll give it a test. Thanks a lot.
|
|
|
|
|
|