User Tools

Site Tools


tnhscript:privateroom

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tnhscript:privateroom [2009/02/18 01:43]
telliamed
tnhscript:privateroom [2010/11/23 00:11] (current)
Line 1: Line 1:
 ====== PrivateRoom ====== ====== PrivateRoom ======
  
-Allows an AI that is normally non-hostile to become alarmed if it sees the ``Player`` in a room. When the ``Player`` enters the room, a meta-property ​(``M-PlayerBreach``) is added to the ``Player``, and ``[[dromed:​link:​AIWatchObj]]`` links are created from every ``Human`` object to the ``Player``. If any AI can see the player at the moment he enters the room, then the AI is signalled with ``alarm``. When the ``Player`` exits the room, then the meta-property is removed and the ``[[dromed:​link:​AIWatchObj]]`` links are destroyed. There is a slight pause after leaving a room before the links are destroyed. The idea is that an AI will be alerted if it sees that you've just walked out of the room, even if he didn't actually see you in the room itself. Another awareness test will be made when the links are removed.+Allows an AI that is normally non-hostile to become alarmed if it sees the ``Player`` in a room. When the ``Player`` enters the room, a metaproperty ​(``M-PlayerBreach``) is added to the ``Player``, and ``[[dromed:​link:​AIWatchObj]]`` links are created from every ``Human`` object to the ``Player``. If any AI can see the player at the moment he enters the room, then the AI is signalled with ``alarm``. When the ``Player`` exits the room, then the meta-property is removed and the ``[[dromed:​link:​AIWatchObj]]`` links are destroyed. There is a slight pause after leaving a room before the links are destroyed. The idea is that an AI will be alerted if it sees that you've just walked out of the room, even if he didn't actually see you in the room itself. Another awareness test will be made when the links are removed.
  
-The ``M-PlayerBreach`` ​meta-property ​should have ``[[dromed:​property:​AI_WtchPnt|AI\Watch:​ Watch link defaults]]`` set to ''​Player intrusion''​ with ''​line-of-sight''​. It should also have a small but non-zero radius, and an awareness requirement of ''​2''​. The [[AwarenessFilter]] script may be useful as well.+The ``M-PlayerBreach`` ​metaproperty ​should have ``[[dromed:​property:​AI_WtchPnt|AI\Watch:​ Watch link defaults]]`` set to ''​Player intrusion''​ with ''​line-of-sight''​. It should also have a small but non-zero radius, and an awareness requirement of ''​2''​. The [[AwarenessFilter]] script may be useful as well.
  
 ^Messages | ``PlayerRoomEnter``,​ ``PlayerRoomExit``,​ ``Timer`` ​ | ^Messages | ``PlayerRoomEnter``,​ ``PlayerRoomExit``,​ ``Timer`` ​ |
 ^Links | ``[[dromed:​link:​AIAwareness]]``,​ ``[[dromed:​link:​AIWatchObj]]`` ​ | ^Links | ``[[dromed:​link:​AIAwareness]]``,​ ``[[dromed:​link:​AIWatchObj]]`` ​ |
-^MetaProperties ​| ``M-PlayerBreach`` ​ |+^Metaproperties ​| ``M-PlayerBreach`` ​ |
 ^Signals | ``alarm`` ​ | ^Signals | ``alarm`` ​ |
 ^Parameters | $$exit_time$$ //​(time)// ​ | Delay after leaving the room during which the player will remain suspicious. Default is 1 second. ​ | ^Parameters | $$exit_time$$ //​(time)// ​ | Delay after leaving the room during which the player will remain suspicious. Default is 1 second. ​ |
  
-~~DISCUSSION~~ 
  
tnhscript/privateroom.1234921396.txt.gz · Last modified: 2009/02/18 01:43 by telliamed