Module twdll_faction

Functions for interacting with factions.

Functions

GetMemoryAddress (faction) Returns the memory address of the real faction object.
GetGold (faction) Gets the faction's gold.
SetGold (faction, value) Sets the faction's gold.


Functions

GetMemoryAddress (faction)
Returns the memory address of the real faction object.

Parameters:

  • faction userdata the faction object (first argument)

Returns:

    string memory address (e.g. "0x12345678")
GetGold (faction)
Gets the faction's gold.

Parameters:

  • faction userdata the faction object

Returns:

    integer current gold
SetGold (faction, value)
Sets the faction's gold.

Parameters:

  • faction userdata the faction object
  • value integer new gold amount
generated by LDoc 1.5.0