Difference between revisions of "0582"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} '''REGISTER_BEST_POSITION''' <hr /> '''Description''' : Saves the Hotring best result stat '''Syntax''' : 0582: register_hotring_best_result [''int''] '''Parameter...")
 
m
 
Line 1: Line 1:
{{Icon|VC}} '''REGISTER_BEST_POSITION'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = REGISTER_BEST_POSITION
: Saves the Hotring best result stat
+
| description = Saves the Hotring best result [[List of statistics (VC)|stat]]
'''Syntax'''
+
| syntax1    = 0582: register_hotring_best_result [''int'']
: 0582: register_hotring_best_result [''int'']
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = Integer value
: [''int'']
+
}}
:: Integer value
 
  
This opcode saves the lowest value to the "Hotring Best Result" [[List of statistics (VC)|stat]] ([[GXT]] string <code>STHC_05</code>). Interestingly, the stat will initially start with a value of 2147483647 (0x7FFFFFFF) but it will not be displayed in the stats menu until the value is not equal to it. Any value lower than the saved value will update the saved value with the new value; higher values have no effect on the stat. The value set with this opcode is saved in [[Saves (GTA VC)#Block 19: Stats|block 19 of the save file]].
+
This opcode saves the lowest value to the "Hotring Best Result" stat ([[GXT]] key <code>STHC_05</code>). Interestingly, the stat initially starts with a value of 2147483647 (0x7FFFFFFF) and does not appear in the stats menu until its value is not equal to it. Any value lower than the saved value will update the saved value with the new value; higher values have no effect on the stat. The value set with this opcode is saved in [[Saves (GTA VC)#Block 19: Stats|block 19 of the save file]].
  
 
== Keywords ==
 
== Keywords ==
 
register, save, best, position, result, hotring, hot, ring, stadium, event, statistics, stat
 
register, save, best, position, result, hotring, hot, ring, stadium, event, statistics, stat
 
[[Category:OpCodes]]
 

Latest revision as of 02:37, 30 November 2016

Vice City REGISTER_BEST_POSITION


Description
Saves the Hotring best result stat
Syntax
0582: register_hotring_best_result [int]
Parameter
[int]
Integer value

This opcode saves the lowest value to the "Hotring Best Result" stat (GXT key STHC_05). Interestingly, the stat initially starts with a value of 2147483647 (0x7FFFFFFF) and does not appear in the stats menu until its value is not equal to it. Any value lower than the saved value will update the saved value with the new value; higher values have no effect on the stat. The value set with this opcode is saved in block 19 of the save file.

Keywords

register, save, best, position, result, hotring, hot, ring, stadium, event, statistics, stat