Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Tips and tricks ➜ Exits

Exits

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by AnalogConspiracy   (9 posts)  Bio
Date Wed 17 Apr 2013 11:55 PM (UTC)

Amended on Thu 18 Apr 2013 12:49 AM (UTC) by AnalogConspiracy

Message
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

-- Analog
Top

Posted by AnalogConspiracy   (9 posts)  Bio
Date Reply #1 on Thu 18 Apr 2013 12:51 AM (UTC)
Message
<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.

-- Analog
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,318 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.