About: Make an NPC Open/Close a Door   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

If this is done through a Conversation, then make an NPC open/close a door is just a matter of applying the script in the “Actions Taken” script handle. NOTE: Remove the nw_walk_wp script from the End Conversation Normally script handle in the convo node. More on this later.

AttributesValues
rdfs:label
  • Make an NPC Open/Close a Door
  • Make an NPC open/close a door
rdfs:comment
  • If this is done through a Conversation, then make an NPC open/close a door is just a matter of applying the script in the “Actions Taken” script handle. NOTE: Remove the nw_walk_wp script from the End Conversation Normally script handle in the convo node. More on this later.
  • If this is done through a Conversation then is just a matter of applying the script in the “Actions Taken” script handle. NOTE: Remove the nw_walk_wp script from the End Conversation Normally script handle in the convo node. More on this latter.
dcterms:subject
abstract
  • If this is done through a Conversation, then make an NPC open/close a door is just a matter of applying the script in the “Actions Taken” script handle. NOTE: Remove the nw_walk_wp script from the End Conversation Normally script handle in the convo node. More on this later.
  • If this is done through a Conversation then is just a matter of applying the script in the “Actions Taken” script handle. NOTE: Remove the nw_walk_wp script from the End Conversation Normally script handle in the convo node. More on this latter. Place this script in the Actions Taken handle on the text node that you want the NPC to open / close a door. Replace the Word "DOOR_TAG" with the actual TAG of the door you want him to open, include the quotes "". The SetLocked function is included in case the door is locked. Your NPC will walk to the door and Open it. The script to close the Door is very similar, however we must reverse the order of the SetLocked and Action. ///////////////////////////////////////////////////////////// // NPC Open Door ///////////////////////////////////////////////////////////// void main() { object oDoor = GetObjectByTag("DOOR_TAG"); SetLocked(oDoor,FALSE); ActionOpenDoor(oDoor); } ///////////////////////////////////////////////////////////// // NPC Close Door ///////////////////////////////////////////////////////////// void main() { object oDoor = GetObjectByTag("DOOR_TAG"); ActionCloseDoor(oDoor); SetLocked(oDoor,TRUE); }
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software