Difference between revisions of "042F"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 042E=2,%1h% %2d%
+
| games      = {{Icon|3}} {{Icon|VC}}
 +
| command    = REGISTER_HIGHEST_SCORE
 
| description = Records high record stats
 
| description = Records high record stats
| p1          = Stat ID
+
| syntax1    = 042F: register_highest_int_stat [''int1''] to [''int2'']
| p2          = Value
+
| p1t        = [''int1'']
| game        = [[GTA 3]], [[Vice City]]
+
| p1d        = Stat id
 +
| p2t        = [''int2'']
 +
| p2d        = Integer value
 
}}
 
}}
This opcode records record stats in the game. The value is set and shown in the stats menu. The stat can only be overwritten by a value higher than the previously recorded value.
 
  
==List of 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 ==
! GTA III
+
These are all the stats that were used in the original script.
! Vice City
+
{|class="wikitable center-col-1"
 +
!Id ||{{Icon|3}} ||{{Icon|VC}}
 
|-
 
|-
| 0 || Bling-bling Scramble || Highest score for Shooter
+
|0 ||Bling-bling Scramble ||Highest score for Shooter
 
|-
 
|-
| 1 || Diablo Destruction || Best Percentage of hits for Shooter
+
|1 ||Diablo Destruction ||Best Percentage of hits for Shooter
 
|-
 
|-
| 2 || Mafia Massacre || Number of drug deals made
+
|2 ||Mafia Massacre ||Number of drug deals made
 
|-
 
|-
| 3 || Casino Calamity || Highest score with Keepie-Uppy beach ball
+
|3 ||Casino Calamity ||
 
|-
 
|-
| 4 || Rumpo Wrecker || Hotring Best Result
+
|4 ||Rumpo Wrecker ||
 
|}
 
|}
  
==Extended stats==
+
== Extended stats ==
These special stats uses a similar exploit [http://www.gtaforums.com/index.php?showtopic=257379 here]. Although this can't do such wide-ranging changes, almost all stats can be edited using this technique. These lists exclude stats that can be changed by other stat-changing opcodes.
+
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.
===GTA III===
+
 
{| {{prettytable}}
+
For GTA III v1.0, these are the steps to edit most stats:
! ID
+
* Take the [[List of statistics (III)|memory address of a statistic]].
! Data type
+
* Subtract the memory address with 0x8622B0.
! Stat
+
* 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:
| 31445 || int || Criminals wasted
+
{{Pre|class=sb-code|1=
|-
+
042F: <span class="m">131659</span> <span class="m">10</span>
| 131565 || int || Helicopters destroyed
+
}}
|-
 
| 131659 || int || Hospital visits
 
|-
 
| 131663 || int || Times busted
 
|-
 
| 131688 || int || People wasted by others
 
|-
 
| 146995 || int || People you've wasted
 
|-
 
| 147608 || int || Kgs of explosives used
 
|-
 
| 148034 || int || Days passed in game
 
|-
 
| 148090 || int || Mm rain fallen
 
|-
 
| 151373 || int || Longest flight in Dodo
 
|-
 
| 227505 || flt || Distance travelled by car (m)
 
|-
 
| 228342 || int || Cars exploded
 
|-
 
| 230248 || int || Cars crushed
 
|}
 
  
===Vice City===
+
For Vice City v1.0, these are the steps to edit most stats:
{| {{prettytable}}
+
* Take the [[List of statistics (VC)|memory address of a statistic]].
! ID
+
* Subtract the memory address with 0x9B6E20.
! Data type
+
* Divide the difference by 4.
! Stat
+
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=
| -107698 || int || Tires popped with gunfire
+
042F: -<span class="m">67264</span> <span class="m">10</span>
|-
+
}}
| -67783 || int || Boats destroyed
 
|-
 
| -67719 || flt || Distance traveled by golf cart (m)
 
|-
 
| -67340 || int || Planes & Helicopters destroyed
 
|-
 
| -67268 || int || Hospital visits
 
|-
 
| -67261 || int || Bullets fired
 
|-
 
| -67260 || int || Times busted
 
|-
 
| -67229 || int || People wasted by others
 
|-
 
| -63969 || int || Seagulls Sniped
 
|-
 
| -63907 || int || People you've wasted
 
|-
 
| -63902 || int || Kgs of explosives used
 
|-
 
| -57099 || int || Days passed in game
 
|-
 
| -57089 || int || Photographs Taken
 
|-
 
| -2395 || int || Fishes Fed
 
|-
 
| -986 || int || Total number of wanted stars attained
 
|-
 
| -956 || int || Total number of wanted stars evaded
 
|-
 
| -246 || flt || Distance traveled by helicopter (m)
 
|-
 
| -83 || int || Bullets that hit
 
|-
 
| 6 || int || Number of headshots
 
|-
 
| 88366 || flt || Distance traveled by bike (m)
 
|-
 
| 88409 || flt || Distance traveled by boat (m)
 
|-
 
| 88410 || int || Road Vehicles destroyed
 
|-
 
| 91037 || int || Sprayings
 
|-
 
| 91063 || flt || Distance traveled by car (m)
 
|}
 
  
==See also==
+
== See also ==
*[[042E]], another stat-recording opcode
+
* {{Icon|t}} [[042E]], register lowest int stat
  
==Keywords==
+
== Keywords ==
 
record, add, stat, statistics
 
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