Module twdll_character
Functions for interacting with game characters.
Functions
| SetIntAtOffset (character, offset, value) | Writes a 32-bit integer at the given memory offset. |
| GetIntAtOffset (character, offset) | Reads a 32-bit integer at the given memory offset. |
| GetMemoryAddress (character) | Returns the memory address of the real character object. |
| SetMovementPoints (character, value) | Sets the movement points of a character. |
| GetMovementPoints (character) | Gets the movement points of a character. |
| SetAmbition (character, value) | Sets the ambition of a character. |
| GetAmbition (character) | Gets the ambition of a character. |
| SetGravitas (character, value) | Sets the gravitas of a character. |
| GetGravitas (character) | Gets the gravitas of a character. |
Functions
- SetIntAtOffset (character, offset, value)
-
Writes a 32-bit integer at the given memory offset.
Parameters:
- character userdata the character object (first argument)
- offset integer
- value integer
- GetIntAtOffset (character, offset)
-
Reads a 32-bit integer at the given memory offset.
Parameters:
- character userdata the character object (first argument)
- offset integer
Returns:
-
integer
value
- GetMemoryAddress (character)
-
Returns the memory address of the real character object.
Parameters:
- character userdata the character object (first argument)
Returns:
-
string
memory address (e.g. "0x12345678")
- SetMovementPoints (character, value)
-
Sets the movement points of a character.
Parameters:
- character userdata The character object.
- value integer The new movement points value.
- GetMovementPoints (character)
-
Gets the movement points of a character.
Parameters:
- character userdata The character object.
Returns:
-
integer
The movement points of the character.
- SetAmbition (character, value)
-
Sets the ambition of a character.
Parameters:
- character userdata The character object.
- value integer The new ambition value.
- GetAmbition (character)
-
Gets the ambition of a character.
Parameters:
- character userdata The character object.
Returns:
-
integer
The ambition of the character.
- SetGravitas (character, value)
-
Sets the gravitas of a character.
Parameters:
- character userdata The character object.
- value integer The new gravitas value.
- GetGravitas (character)
-
Gets the gravitas of a character.
Parameters:
- character userdata The character object.
Returns:
-
integer
The gravitas of the character.