About: GetArmorRulesType   Sponge Permalink

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

Currently, the toolset description of this function is a little off. If oItem is invalid it will not return as zero (the row for cloth in armorrulesstats.2da). This is an important distinction as this function is often used in conjunction with Get2DAString and using a conversion function such as StringToInt will cause the entire script executing the function to shut down. However, there is a simple workaround for this problem. For example, to find the Armor check penalty of oItem:

AttributesValues
rdfs:label
  • GetArmorRulesType
rdfs:comment
  • Currently, the toolset description of this function is a little off. If oItem is invalid it will not return as zero (the row for cloth in armorrulesstats.2da). This is an important distinction as this function is often used in conjunction with Get2DAString and using a conversion function such as StringToInt will cause the entire script executing the function to shut down. However, there is a simple workaround for this problem. For example, to find the Armor check penalty of oItem:
dbkwik:nwn2/proper...iPageUsesTemplate
abstract
  • Currently, the toolset description of this function is a little off. If oItem is invalid it will not return as zero (the row for cloth in armorrulesstats.2da). This is an important distinction as this function is often used in conjunction with Get2DAString and using a conversion function such as StringToInt will cause the entire script executing the function to shut down. However, there is a simple workaround for this problem. For example, to find the Armor check penalty of oItem: object oPC = OBJECT_SELF; object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oPC); int nArmor; if (oArmor == OBJECT_INVALID) { nArmor = 0; } else nArmor = GetArmorRulesType(oArmor); int nArmorPenalty = StringToInt(Get2DAString("armorrulestats", "ACCHECK", nArmor)); * Added in Patch 1.23
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