Exits

Posted by AnalogConspiracy on Wed 17 Apr 2013 11:55 PM — 2 posts, 12,865 views.

#0
http://pastie.org/7637513

Those are my exits, and they are not in a "list". Is there a way I can keep that representation of a close-area map, AND have a list of exits?

If this is possible, how would I call them from a trigger?

Making exit trigger outputs:

Exits are: NW, NE, N, and S.

I'd like this to be a walker to contribute to a mapper I'm working on (I know this isn't necessary for this particular MUD, but it's just solely for learning purposes)

[EDIT] The game has an option for this. Matchline will be Visible Exits: N S Nw Ne
Amended on Thu 18 Apr 2013 12:49 AM by AnalogConspiracy
#1
<timers>
  <timer second="2.00" offset_second="0.00"    send_to="12"
group="level" >
  <send>route = {
  "west","west","north","north","west","west","west","west","west","north","north","north","north","north","north","north","north","north","north","north","east","east","east","east","east","southeast","east","east","northeast","east","east","east","east","east","south","south","south","south","south","south","south","south","south","south","west","west","south","south","west","west","west","west",  -- to butcher
  "s", "w", "n", "n",  -- back again
  }

-- stay here if we are fighting or recovering

if fighting or resting then
  return
end  -- if


loc = (loc or 0) + 1  -- next way to walk

-- if past end, go back to start

if loc &gt; #route then
  loc = 1
end -- if

Send (route [loc])</send>

  </timer>
</timers>


This is where I'm at. I haven't bothered trying to re-route the path back where I want my character to go.

Credit: Nick Gammon.