API FactionToSignedFaction: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
=== FactionToSignedFaction ===
=== FactionToSignedFaction ===
'''Definition:'''<br>
'''Definition:'''<br>
FactionToSignedFaction(integer faction) -> integer
FactionToSignedFaction(integer standing) -> integer
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
Convert absolute faction values (0 to 65535) into signed faction values (-1000 to 1000)
Convert absolute faction standing values (0 to 65535) into signed faction standing values (-1000 to 1000)
<br>
<br>
'''Arguments:'''<br>
'''Arguments:'''<br>
''faction'' absolute (0 to 65535) faction value
''standing'' absolute (0 to 65535) faction standing value
<br>
<br>
'''Returns:'''<br>
'''Returns:'''<br>
Signed (-1000 to 1000) faction value, rounded down.
Signed integer (-1000 to 1000) faction standing value, rounded down.
<br>
<br>

Latest revision as of 06:22, 25 June 2023

FactionToSignedFaction

Definition:
FactionToSignedFaction(integer standing) -> integer
Description:
Convert absolute faction standing values (0 to 65535) into signed faction standing values (-1000 to 1000)
Arguments:
standing absolute (0 to 65535) faction standing value
Returns:
Signed integer (-1000 to 1000) faction standing value, rounded down.