About: Tag-based scripting   Sponge Permalink

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

Tag-based scripting is a paradigm for supporting custom items that does not require editing module event scripts for each item. When this system is enabled, the relevant module events execute a script whose name is the item's tag, allowing an item and its script to be cleanly added to or removed from a module with almost no more risk of interference with other items than is normal for adding or removing an item alone. (The risk is reduced to a name conflict, as would occur if adding an item with a ResRef that is already in use.)

AttributesValues
rdfs:label
  • Tag-based scripting
rdfs:comment
  • Tag-based scripting is a paradigm for supporting custom items that does not require editing module event scripts for each item. When this system is enabled, the relevant module events execute a script whose name is the item's tag, allowing an item and its script to be cleanly added to or removed from a module with almost no more risk of interference with other items than is normal for adding or removing an item alone. (The risk is reduced to a name conflict, as would occur if adding an item with a ResRef that is already in use.)
dcterms:subject
dbkwik:nwn/property/wikiPageUsesTemplate
abstract
  • Tag-based scripting is a paradigm for supporting custom items that does not require editing module event scripts for each item. When this system is enabled, the relevant module events execute a script whose name is the item's tag, allowing an item and its script to be cleanly added to or removed from a module with almost no more risk of interference with other items than is normal for adding or removing an item alone. (The risk is reduced to a name conflict, as would occur if adding an item with a ResRef that is already in use.) The flexibility of tag-based scripting is subject to abuse, particularly when local vault characters are used. To counter this, BioWare's system allows a module to define a prefix for all tag-based script names by storing the prefix in the local string "MODULE_VAR_TAGBASED_SCRIPT_PREFIX". When this local variable is set on the module, then the name of the script invoked by tag-based scripting is not just the item's tag, but the prefix followed by the item's tag. As a side-effect, using this prefix groups all tag-based scripts together in the alphabetical listing of a module's scripts.
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