Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetTargetStatesData

From RoR Wiki

UI Lua API · Game functions
Version: WAR 1.4.8

Returns 131 numeric state values read from one of the player's targets.

states = GetTargetStatesData(unused)

Arguments

unused
string – Must be a string, but its value is not used.

Returns

states
table – Table with keys 1 to 131. Each value is a table with one field, value (number, 0–255).

Details

  • The client reads the target held by the player's target manager. If that target does not exist, every value is 0.
  • The argument is type-checked as a string and then ignored. Calling the function without it raises an Invalid Parameters error.
  • If there is no player object, or the Lua state is not available, the function returns nothing.
  • The meaning of the individual states has not been confirmed.
  • The stock UI never calls this function.

Errors

None.

Example

A minimal example built from the signature:

local states = GetTargetStatesData( "" )
for index = 1, 131 do
    local v = states[index].value
end

See also