API FactionToSignedFaction: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Created page with "=== FactionToSignedFaction === '''Definition:'''<br> FactionToSignedFaction(integer faction) -> integer <br> '''Description:'''<br> Convert absolute faction values (0 to 65535..."
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
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>
'''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.