About: Require an item to rest   Sponge Permalink

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

To require an item to rest the following script can be used as the module's OnPlayerRest event handler. This script identifies the item by its tag ("FOOD", in this case). // The tag of the item that is required for resting: const string TAG_REST_ITEM = "FOOD"; void main() {}

AttributesValues
rdfs:label
  • Require an item to rest
rdfs:comment
  • To require an item to rest the following script can be used as the module's OnPlayerRest event handler. This script identifies the item by its tag ("FOOD", in this case). // The tag of the item that is required for resting: const string TAG_REST_ITEM = "FOOD"; void main() {}
dcterms:subject
abstract
  • To require an item to rest the following script can be used as the module's OnPlayerRest event handler. This script identifies the item by its tag ("FOOD", in this case). // The tag of the item that is required for resting: const string TAG_REST_ITEM = "FOOD"; void main() {object oPC = GetLastPCRested(); switch ( GetLastRestEventType() ) { case REST_EVENTTYPE_REST_STARTED: { // The PC is starting to rest. Make sure this is allowed. object oFood = GetItemPossessedBy(oPC, TAG_REST_ITEM); if ( oFood == OBJECT_INVALID ) { // Prevent the PC from resting. AssignCommand(oPC,ClearAllActions()); return; } // Consume the food. DestroyObject(oFood); break; } } }
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