042C

From GTAMods Wiki
Revision as of 22:25, 22 December 2016 by Link2012 (talk | contribs)
Jump to navigation Jump to search

GTA III Vice City San Andreas SET_TOTAL_NUMBER_OF_MISSIONS


Description
Sets the total number of missions
Syntax
042C: set_total_missions_to [int]
Parameter
[int]
Integer value

In GTA III, this opcode sets right value of the "Missions passed" stat (GXT key FEST_MP). The left value is affected by 0318. The stat initially starts with a value of 0. That stat does not exist in Vice City so the opcode has no practical effect there. The value set with this opcode is saved in block 17 of the save file in GTA III and block 19 in Vice City.

In GTA3script the parameter for this opcode should be 0. The compiler will automatically discover the total number of missions by analyzing all occurrences of opcode 0318.

Keywords

set, total, number, mission