About: Conditional respawn   Sponge Permalink

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

This is a little script which I have found very useful in my mod. I wanted players to respawn in a freindly temple for most of the mod, but later on, I want to remove this ability (when tthe players are in an area outside the temple's influence).

AttributesValues
rdfs:label
  • Conditional respawn
rdfs:comment
  • This is a little script which I have found very useful in my mod. I wanted players to respawn in a freindly temple for most of the mod, but later on, I want to remove this ability (when tthe players are in an area outside the temple's influence).
  • This conditional respawn script allows a module to temporarily disable respawning for particular player characters (PCs). This is accomplished by setting a local integer called RespawnDenied to a nonzero value on the PC in question. The local integer could be set, for example, in the OnEnter event for an area that is considered to be too distant from the respawn point, and cleared (set to 0) when exiting such an area. A PC that has this integer set will still be told that respawning is an option, but if that option is chosen, the PC will simply be left as a selectable, but not raisable, corpse.
dcterms:subject
abstract
  • This is a little script which I have found very useful in my mod. I wanted players to respawn in a freindly temple for most of the mod, but later on, I want to remove this ability (when tthe players are in an area outside the temple's influence). The first thing to do is to use a script to set a variable, ("vRespawnok"in my particular script)to the value 1 (or any value other than 0) , somewhwere in the are that you don't want players to be able to respawn You can use the SetLocalInt command,and place the script in the OnEnter section of the area properties, or attach it to a trigger, or even a useable object; a cursed altar perhaps?
  • This conditional respawn script allows a module to temporarily disable respawning for particular player characters (PCs). This is accomplished by setting a local integer called RespawnDenied to a nonzero value on the PC in question. The local integer could be set, for example, in the OnEnter event for an area that is considered to be too distant from the respawn point, and cleared (set to 0) when exiting such an area. A PC that has this integer set will still be told that respawning is an option, but if that option is chosen, the PC will simply be left as a selectable, but not raisable, corpse. This script is intended to be the OnPlayerRespawn event handler for a module.
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