Module twdll_battle_unit
Functions for interacting with battle units.
Functions
| GetMemoryAddress () | Returns the memory address of the real battle unit object. |
| GetChargeBonus () | Gets the unit's charge bonus from the nested stats object. |
| GetMeleeAttack () | Gets the unit's melee attack from the nested stats object. |
| GetBaseMorale () | Gets the unit's base morale from the nested stats object. |
| GetSomeFloatValue () | Reads an example float stat from the nested stats object at offset 0x110. |
| GetFatigue () | Gets the unit's fatigue level. |
Functions
- GetMemoryAddress ()
-
Returns the memory address of the real battle unit object.
Returns:
-
string
memory address (e.g. "0x12345678")
- GetChargeBonus ()
-
Gets the unit's charge bonus from the nested stats object.
Returns:
-
integer
charge bonus
- GetMeleeAttack ()
-
Gets the unit's melee attack from the nested stats object.
Returns:
-
integer
melee attack
- GetBaseMorale ()
-
Gets the unit's base morale from the nested stats object.
Returns:
-
integer
base morale
- GetSomeFloatValue ()
-
Reads an example float stat from the nested stats object at offset 0x110.
Returns:
-
number
value
- GetFatigue ()
-
Gets the unit's fatigue level.
Returns:
-
integer
fatigue