Difference between revisions of "042F"

From GTAMods Wiki
Jump to navigation Jump to search
(created article)
 
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 042E=2,%1h% %2d%
+
| games      = {{Icon|3}} {{Icon|VC}}
| description = Records record stats in Vice City
+
| command    = REGISTER_HIGHEST_SCORE
| p1          = Stat ID
+
| description = Records high record stats
| p2          = Integer
+
| syntax1    = 042F: register_highest_int_stat [''int1''] to [''int2'']
| game        = [[Vice City]]
+
| p1t        = [''int1'']
 +
| p1d        = Stat id
 +
| p2t        = [''int2'']
 +
| p2d        = Integer value
 
}}
 
}}
This opcode records some stats in Vice City. The integer value will be recorded and shown in the stats menu. The stat updates itself when the previous record has been broken.
 
  
==Stats==
+
This opcode saves the highest value to almost any stat in the game. The stat can only be overwritten by a value larger than the previously saved value. The value set with this opcode is saved in [[Saves (GTA 3)#Block 17: Stats|block 17 of the save file]] in GTA III and [[Saves (GTA VC)#Block 19: Stats|block 19]] in Vice City. This opcode is a no operation in San Andreas.
{| {{Prettytable}}
+
 
! ID
+
== List of stats ==
! Stat
+
These are all the stats that were used in the original script.
 +
{|class="wikitable center-col-1"
 +
!Id ||{{Icon|3}} ||{{Icon|VC}}
 
|-
 
|-
| 0 || Highest score for Shooter
+
|0 ||Bling-bling Scramble ||Highest score for Shooter
 
|-
 
|-
| 1 || Best Percentage of hits for Shooter
+
|1 ||Diablo Destruction ||Best Percentage of hits for Shooter
 
|-
 
|-
| 2 || Number of drug deals made
+
|2 ||Mafia Massacre ||Number of drug deals made
 
|-
 
|-
| 3 || Highest score with Keepie-Uppy beach ball
+
|3 ||Casino Calamity ||
 
|-
 
|-
| 4 || Hotring Best Result
+
|4 ||Rumpo Wrecker ||
 
|}
 
|}
 +
 +
== Extended stats ==
 +
Using a similar exploit [http://www.gtaforums.com/index.php?showtopic=257379 here] for San Andreas, almost all stats can be edited using this technique for GTA III and Vice City. The second parameter accepts floating-point values for stats that require it.
 +
 +
For GTA III v1.0, these are the steps to edit most stats:
 +
* Take the [[List of statistics (III)|memory address of a statistic]].
 +
* Subtract the memory address with 0x8622B0.
 +
* Divide the difference by 4.
 +
The resulting value is used as the stat id for this opcode. For example, the following line sets the "Hospital visits" stat to 10:
 +
{{Pre|class=sb-code|1=
 +
042F: <span class="m">131659</span> <span class="m">10</span>
 +
}}
 +
 +
For Vice City v1.0, these are the steps to edit most stats:
 +
* Take the [[List of statistics (VC)|memory address of a statistic]].
 +
* Subtract the memory address with 0x9B6E20.
 +
* Divide the difference by 4.
 +
The resulting value is used as the stat id for this opcode. For example, the following line sets the "Hospital visits" stat to 10:
 +
{{Pre|class=sb-code|1=
 +
042F: -<span class="m">67264</span> <span class="m">10</span>
 +
}}
 +
 +
== See also ==
 +
* {{Icon|t}} [[042E]], register lowest int stat
 +
 +
== Keywords ==
 +
record, add, stat, statistics

Latest revision as of 03:09, 13 April 2017

GTA III Vice City REGISTER_HIGHEST_SCORE


Description
Records high record stats
Syntax
042F: register_highest_int_stat [int1] to [int2]
Parameter
[int1]
Stat id
[int2]
Integer value

This opcode saves the highest value to almost any stat in the game. The stat can only be overwritten by a value larger than the previously saved value. The value set with this opcode is saved in block 17 of the save file in GTA III and block 19 in Vice City. This opcode is a no operation in San Andreas.

List of stats

These are all the stats that were used in the original script.

Id GTA III Vice City
0 Bling-bling Scramble Highest score for Shooter
1 Diablo Destruction Best Percentage of hits for Shooter
2 Mafia Massacre Number of drug deals made
3 Casino Calamity
4 Rumpo Wrecker

Extended stats

Using a similar exploit here for San Andreas, almost all stats can be edited using this technique for GTA III and Vice City. The second parameter accepts floating-point values for stats that require it.

For GTA III v1.0, these are the steps to edit most stats:

The resulting value is used as the stat id for this opcode. For example, the following line sets the "Hospital visits" stat to 10:

042F: 131659 10

For Vice City v1.0, these are the steps to edit most stats:

The resulting value is used as the stat id for this opcode. For example, the following line sets the "Hospital visits" stat to 10:

042F: -67264 10

See also

  • GTA III Vice City San Andreas 042E, register lowest int stat

Keywords

record, add, stat, statistics