View Full Version : [ lich question ] walk script
100% Wool
04-16-2006, 09:25 AM
Is it possible to set "boundaries/walls" for the WALK script so it doesn't wander out of the hunting area you're in?
the WALK script has been working out great for me since I started using it but now that I'm in a hunting area thats not enclosed its wandering off to areas that I don't want to be in.
Aithzar
04-19-2006, 11:01 AM
Yes it is.
Move:
until walk "The area is hilly and the terrain rocky"
nil
end
Something very simple like this sets up a boundry.
Aith/Russell
Shaelun
04-19-2006, 03:00 PM
Yeah, it is... unfortunately you can't do it without modifying the script though. Personally I'd make a copy called "thrak_walk.lic" or something, edit it as seen below, and make a hotkey that starts the edited copy. Then when you switch hunting areas, just change the hotkey.
In a script, you can give the `walk' command "boundaries" by providing part of the room description of whatever room you want to make a "boundary."
So for instance, if I wanted a copy of the walk.lic script that walks around a specific area and that turns back when it hits either of two boundary rooms, in the script I'd find the line that says just plain `walk' and change it to this:
walk "I'm part of the room description in imaginary boundary-room one", "and I'm part of the room description in imaginary boundary-room two"
You can give it as many "boundary-room" descriptions as you want (as in like, hundreds if you really want). It'll recognize partial matches, but make sure you give it enough of the room description for it to be unique or it may end up finding a match in rooms that you didn't want it turning back at.
100% Wool
04-19-2006, 05:59 PM
Thanks so much Shaelun
~Player of Barumples
~Jae
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.