Difference between revisions of "Modding:being object (0.9.9.7)"

From DoomRL Wiki

Jump to: navigation, search
(Created page with "WIP pulled from 096 still researching ------ == Properties == Beings also have all the Thing properties in addition to those listed below. For beings, the ...")
 
 
Line 1: Line 1:
WIP pulled from 096 still researching
+
All beings inherit from [[Modding:thing|thing]]. This means all '''thing''' properties can be accessed in addition to the below.
 
+
 
+
------
+
 
+
 
+
  
 
== Properties ==
 
== Properties ==
Beings also have all the [[Modding:Thing|Thing]] properties in addition to those listed below. For beings, the resistance fields are inherent resistances that apply to all attacks.
+
{{drltable|Properties |3|{{Table3Col
 
+
{|class="wikitable" style="border: 2px solid darkred; border-spacing: 0; font-size: 90%; margin: 0.25em 0.5em;"
+
! colspan="3" style="background: darkred; color: yellow; font-size: 120%; text-align: center"|Being
+
{{Table3Col
+
 
   |es=background: #333;
 
   |es=background: #333;
   |c1=font-weight:bold; text-align:right; vertical-align:top; padding:0px 2px;
+
   |c1=font-family:monospace; text-align:right; vertical-align:top; padding:0px 2px;
 
   |c2=vertical-align:top; padding:0px 2px;
 
   |c2=vertical-align:top; padding:0px 2px;
 
   |c3=padding:0px 2px;
 
   |c3=padding:0px 2px;
   |'''Byte'''|attackchance|This is how likely (in percent) a monster is to use a ranged attack on its turn. The exact interpretation may depend on the AI. This property is read-only.
+
   |<u>can_dual_reload</u>|{{modarg|boolean}}|This boolean's purpose is a mystery since a being's dual reload status can be determined without it.
   |'''Integer'''|hp|This is the being's current [[health]].
+
   |hp   |{{modarg|int}} |This is the being's current [[health]].
   |'''Word'''|hpmax|This is the being's maximum health.
+
   |hpmax|{{modarg|word}}|This is the being's maximum [[health]].
   |'''Byte'''|vision|This is the being's vision radius. (It is up to the AI to respect this radius.)
+
   |hpnom|{{modarg|word}}|This is the being's normal [[health]]. It is used to scale the [[Ironman]] bonus in the [[Angel of Humanity]] challenge.
   |'''LongInt'''|scount|This is the being's speed count or energy. It counts up by the being's speed every 0.1s, and when it reaches 5000, the being gets to act. For details, see [[Time#Fractional Time|here]].
+
  |vision|{{modarg|byte}}  |This is the being's vision radius. It is up to the being AI to respect this radius.
   |'''ShortInt'''|tohit|This [[accuracy]] modifier is applied to all of the being's attacks.
+
   |scount|{{modarg|longint}}|This is the being's speed count or energy. It counts up by the being's speed every 0.1s, and when it reaches 5000, the being gets to act. For details, see [[Time#Fractional Time|here]].
   |'''ShortInt'''|todam|This damage modifier is applied to all the being's melee attacks.
+
   |tohit    |{{modarg|shortint}}|This [[accuracy]] modifier is applied to all of the being's attacks.
   |'''ShortInt'''|todamall|This damage modifier is applied to all the being's attacks.
+
   |todam    |{{modarg|shortint}}|This damage modifier is applied to all the being's melee attacks.
   |'''ShortInt'''|tohitmelee|This accuracy modifier is applied to the being's melee attacks.
+
   |todamall  |{{modarg|shortint}}|This damage modifier is applied to all the being's attacks.
   |'''Byte'''|speed|This is the rate at which the being's scount increases. It affects the speed of all actions.
+
   |tohitmelee|{{modarg|shortint}}|This accuracy modifier is applied to the being's melee attacks.
   |'''Byte'''|armor|This is the being's natural armor. It appears as [[protection]] against all attacks.
+
   |speed  |{{modarg|byte}}|This is the rate at which the being's scount increases. It affects the speed of all actions.
   |'''Word'''|expvalue|This is the amount of [[experience]] that is awarded to the player when the being dies.
+
   |armor  |{{modarg|byte}}|This is the being's natural armor. It appears as [[protection]] against all attacks.
   |'''ShortInt'''|techbonus|This usually corresponds to [[Whizkid]] levels; it affects the number of mods that can be applied and the level of assemblies that can be constructed.
+
   |expvalue|{{modarg|word}}|This is the amount of [[experience]] that is awarded to the player when the being dies.
   |'''ShortInt'''|pistolbonus|This usually corresponds to [[Son of a Gun]] levels; it affects pistol firing time and damage.
+
   |techbonus |{{modarg|shortint}}|This is the property used to implement [[Whizkid]]. It affects the number of mods that can be applied which in turn affects the level of assemblies that can be constructed.
   |'''ShortInt'''|rapidbonus|This usually corresponds to [[Triggerhappy]] levels; it affects the number of shots fired by rapid-fire weapons.
+
   |pistolbonus|{{modarg|shortint}}|This is the property used to implement [[Son of a Gun]]. It affects pistol firing time and damage.
   |'''ShortInt'''|bodybonus|This is the property used to implement [[Badass]]. Each point reduces [[knockback]] by one, and anything above zero stops health decay.
+
   |rapidbonus |{{modarg|shortint}}|This is the property used to implement [[Triggerhappy]]. Each point increases the number of shots fired by rapid-fire weapons by one.
   |'''Byte'''|reloadtime|This is the percentage of normal reload time that the being takes to reload. (It is used to implement [[Reloader]].)
+
   |bodybonus |{{modarg|shortint}}|This is one of the properties used to implement [[Badass]]. Each point reduces [[knockback]] by one.
   |'''Byte'''|firetime|This is the percentage of normal fire time that the being takes to fire. (It is used to implement [[Finesse]].)
+
   |dodgebonus |{{modarg|shortint}}|This is one of the properties used to implement [[Hellrunner]]. It increases the likelihood of dodging incoming attacks.
  |'''Byte'''|movetime|This is the percentage of normal movement time that the being takes to move. For the player, anything less than 100 applies a corresponding dodge bonus. (This is used to implement [[Hellrunner]].)
+
  |hpdecaymax |{{modarg|word}}    |This is one of the properties used to implement [[Badass]]. It represents the threshold that kicks off health decay.
   |'''Word'''|soundact|This is the being's .act sound.
+
   |reloadtime|{{modarg|byte}}|This is the property used to implement [[Reloader]]. This is the percentage of normal reload time that the being takes to reload.
   |'''Word'''|soundhit|This is the being's .hit sound.
+
  |firetime  |{{modarg|byte}}|This is the property used to implement [[Finesse]]. This is the percentage of normal fire time that the being takes to fire.
   |'''Word'''|sounddie|This is the being's .die sound.
+
  |movetime  |{{modarg|byte}}|This is one of the properties used to implement [[Hellrunner]]. This is the percentage of normal movement time that the being takes to move.
   |'''Word'''|soundattack|This is the being's .attack sound.
+
   |soundact  |{{modarg|word}}|This is the being's .act sound.
   |'''Word'''|soundmelee|This is the being's .melee sound.
+
   |soundhit  |{{modarg|word}}|This is the being's .hit sound.
   |'''Word'''|soundhoof|This is the being's .hoof sound.
+
   |sounddie   |{{modarg|word}}|This is the being's .die sound.
  |[[Modding:Being|Being Prototype]]|proto|This is the being's prototype.
+
   |soundattack|{{modarg|word}}|This is the being's .attack sound.
 +
   |soundmelee |{{modarg|word}}|This is the being's .melee sound.
 +
   |soundhoof  |{{modarg|word}}|This is the being's .hoof sound.
 
   |}}
 
   |}}
|}
+
}}
success and false on failure. (''modletter'' should be the length one string corresponding to the mod type.)
+

Latest revision as of 02:00, 22 April 2013

All beings inherit from thing. This means all thing properties can be accessed in addition to the below.

Properties

Properties
can_dual_reload boolean This boolean's purpose is a mystery since a being's dual reload status can be determined without it.
hp int This is the being's current health.
hpmax word This is the being's maximum health.
hpnom word This is the being's normal health. It is used to scale the Ironman bonus in the Angel of Humanity challenge.
vision byte This is the being's vision radius. It is up to the being AI to respect this radius.
scount longint This is the being's speed count or energy. It counts up by the being's speed every 0.1s, and when it reaches 5000, the being gets to act. For details, see here.
tohit shortint This accuracy modifier is applied to all of the being's attacks.
todam shortint This damage modifier is applied to all the being's melee attacks.
todamall shortint This damage modifier is applied to all the being's attacks.
tohitmelee shortint This accuracy modifier is applied to the being's melee attacks.
speed byte This is the rate at which the being's scount increases. It affects the speed of all actions.
armor byte This is the being's natural armor. It appears as protection against all attacks.
expvalue word This is the amount of experience that is awarded to the player when the being dies.
techbonus shortint This is the property used to implement Whizkid. It affects the number of mods that can be applied which in turn affects the level of assemblies that can be constructed.
pistolbonus shortint This is the property used to implement Son of a Gun. It affects pistol firing time and damage.
rapidbonus shortint This is the property used to implement Triggerhappy. Each point increases the number of shots fired by rapid-fire weapons by one.
bodybonus shortint This is one of the properties used to implement Badass. Each point reduces knockback by one.
dodgebonus shortint This is one of the properties used to implement Hellrunner. It increases the likelihood of dodging incoming attacks.
hpdecaymax word This is one of the properties used to implement Badass. It represents the threshold that kicks off health decay.
reloadtime byte This is the property used to implement Reloader. This is the percentage of normal reload time that the being takes to reload.
firetime byte This is the property used to implement Finesse. This is the percentage of normal fire time that the being takes to fire.
movetime byte This is one of the properties used to implement Hellrunner. This is the percentage of normal movement time that the being takes to move.
soundact word This is the being's .act sound.
soundhit word This is the being's .hit sound.
sounddie word This is the being's .die sound.
soundattack word This is the being's .attack sound.
soundmelee word This is the being's .melee sound.
soundhoof word This is the being's .hoof sound.
Personal tools