BrittzXD / silvertree

Automatically exported from code.google.com/p/silvertree
GNU General Public License v3.0
1 stars 1 forks source link

request: 'sighted' event #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is a request for a "sighted" event that fires when the pc party sees
another party (which is filtered upon).

Not sure how the line-of-sight code works (whether it has a range or not),
but it might be interesting to add a 'distance' input that can be filtered on.

Useful to have npc's interact actively with the party (without being
aggressive).

Original issue reported on code.google.com by Rhuv...@googlemail.com on 19 Oct 2007 at 4:50

GoogleCodeExporter commented 8 years ago
This is already done, but is called "sight" instead of "sighted". It takes the 
same
inputs as an encounter event. It doesn't take distance as an input, though I am
planning to add various functions to handle location objects, including a 
distance
function which will tell you the distance between two locations -- i.e.
distance(pc.loc, npc.loc) -- but this isn't done quite yet.

Original comment by dave...@gmail.com on 19 Oct 2007 at 5:00