Difference between revisions of "02ED"
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon|3}} {{Icon|VC}} | + | {{OpCode |
− | + | | games = {{Icon|3}} {{Icon|VC}} | |
− | + | | command = SET_COLLECTABLE1_TOTAL | |
− | + | | description = Sets the total number of [[Collectibles|hidden packages]] | |
− | + | | syntax1 = 02ED: set_total_hidden_packages_to [''int''] | |
− | + | | p1t = [''int''] | |
− | + | | p1d = Total number of hidden packages | |
− | + | }} | |
− | |||
− | This opcode sets the total number of hidden packages. If no value is set with this opcode, the game | + | This opcode sets the total number of hidden packages. If no value is set with this opcode, the game defaults to <i>3</i> as the total. The value set here will not change the total number of packages displayed in the stats menu but the ratio of collected packages to the ratio of total number of packages will be correct. For example, if there are only five hidden packages and the third is collected, the onscreen display will correctly show "Hidden Package 3 of 5" but the stats menu will show "60 out of 100". The value set with this opcode is saved in [[Saves (GTA 3)#Block 16: Player Info|block 16 of the save file]] in GTA III and [[Saves (GTA VC)#Block 18: Player Info|block 18]] in Vice City. |
+ | |||
+ | In [[GTA3script]] the parameter for this opcode should be <code>0</code>. The compiler will automatically discover the total number of collectables by counting all occurrences of [[02EC]]. | ||
== Keywords == | == Keywords == | ||
− | set, total, hidden, package | + | set, total, hidden, package, collectable, collectible |
− | |||
− |
Latest revision as of 22:31, 22 December 2016
- Description
- Sets the total number of hidden packages
- Syntax
- 02ED: set_total_hidden_packages_to [int]
- Parameter
- [int]
- Total number of hidden packages
This opcode sets the total number of hidden packages. If no value is set with this opcode, the game defaults to 3 as the total. The value set here will not change the total number of packages displayed in the stats menu but the ratio of collected packages to the ratio of total number of packages will be correct. For example, if there are only five hidden packages and the third is collected, the onscreen display will correctly show "Hidden Package 3 of 5" but the stats menu will show "60 out of 100". The value set with this opcode is saved in block 16 of the save file in GTA III and block 18 in Vice City.
In GTA3script the parameter for this opcode should be 0
. The compiler will automatically discover the total number of collectables by counting all occurrences of 02EC.
Keywords
set, total, hidden, package, collectable, collectible