Difference between revisions of "0181"
Jump to navigation
Jump to search
(Created page with "{{Icon|3}} '''DECLARE_MISSION_FLAG_FOR_CONTACT''' <hr /> '''Description''' : Links a global variable to the onmission flag for specific contacts '''Sy...") |
(added description) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon| | + | __NOTOC__ |
− | + | {{OpCode | |
− | + | | games = {{Icon|t}} | |
− | + | | command = DECLARE_MISSION_FLAG_FOR_CONTACT | |
− | + | | description = Links a global variable to the onmission [[wikipedia:Flag field|flag]] for specific contacts | |
− | + | | syntax1 = {{Icon|3}} 0181: on_mission_for [''int''] flag = [''global var''] | |
− | + | | syntax2 = {{Icon|VC}} {{Icon|SA}} 0181: nop | |
− | + | | p1t = [''int''] | |
− | + | | p1d = Contact id ([[#Contacts|see below]]) | |
− | + | | p2t = [''global var''] | |
− | + | | p2d = Global variable | |
+ | }} | ||
− | {| class="wikitable" | + | This opcode links a global variable to the onmission flag for specific contacts. It has no effect on the gameplay at all. It seems like during development of GTA III its usage would have allowed custom messages to be printed when a [[0112|death/arrest has been executed]], a feature carried over from GTA 2.{{ref|1}} This opcode is a no operation in Vice City and San Andreas. |
− | ! | + | |
+ | == Contacts == | ||
+ | {|class="wikitable center-col-1" | ||
+ | !Id ||[[SCM language III/VC definitions#CONTACT|Enum]] ||Notes | ||
|- | |- | ||
− | | 0 || CONTACT_LUIGI || | + | |0 ||CONTACT_LUIGI || |
|- | |- | ||
− | | 1 || CONTACT_JOEY || | + | |1 ||CONTACT_JOEY || |
|- | |- | ||
− | | 2 || CONTACT_TONI || | + | |2 ||CONTACT_TONI || |
|- | |- | ||
− | | 3 || CONTACT_FRANKIE || | + | |3 ||CONTACT_FRANKIE || |
|- | |- | ||
− | | 4 || CONTACT_ASUKA || | + | |4 ||CONTACT_ASUKA || |
|- | |- | ||
− | | 5 || CONTACT_KENJI || | + | |5 ||CONTACT_KENJI || |
|- | |- | ||
− | | 6 || CONTACT_RAY || | + | |6 ||CONTACT_RAY || |
|- | |- | ||
− | | 7 || CONTACT_LOVE || | + | |7 ||CONTACT_LOVE || |
|- | |- | ||
− | | 8 || CONTACT_MARIA || unused | + | |8 ||CONTACT_MARIA ||unused |
|- | |- | ||
− | | 9 || CONTACT_RAY_SUBURBAN || unused | + | |9 ||CONTACT_RAY_SUBURBAN ||unused |
|- | |- | ||
− | | 10 || CONTACT_ASUKA_SUBURBAN || | + | |10 ||CONTACT_ASUKA_SUBURBAN || |
|- | |- | ||
− | | 11 || CONTACT_KENJI_SUBURBAN || unused | + | |11 ||CONTACT_KENJI_SUBURBAN ||unused |
|- | |- | ||
− | | 12 || CONTACT_8BALL || | + | |12 ||CONTACT_8BALL || |
|- | |- | ||
− | | 13 || CONTACT_HISPANIC || | + | |13 ||CONTACT_HISPANIC || |
|- | |- | ||
− | | 14 || CONTACT_YARDIE || | + | |14 ||CONTACT_YARDIE || |
|- | |- | ||
− | | 15 || CONTACT_HOODS || | + | |15 ||CONTACT_HOODS || |
|} | |} | ||
− | |||
− | |||
== Keywords == | == Keywords == | ||
set, declare, on, mission, flag, contact | set, declare, on, mission, flag, contact | ||
+ | |||
+ | == Reference == | ||
+ | * {{note|1}} {{GTAF|post|745716|1069226068|GTA III Pre-Release Discussion}} | ||
== See also == | == See also == | ||
− | * [[0180]], declare general mission flag | + | * {{Icon|t}} [[0180]], declare general mission flag |
− | |||
− |
Latest revision as of 22:09, 23 November 2016
DECLARE_MISSION_FLAG_FOR_CONTACT
- Description
- Links a global variable to the onmission flag for specific contacts
- Syntax
- 0181: on_mission_for [int] flag = [global var]
- 0181: nop
- Parameter
- [int]
- Contact id (see below)
- [global var]
- Global variable
This opcode links a global variable to the onmission flag for specific contacts. It has no effect on the gameplay at all. It seems like during development of GTA III its usage would have allowed custom messages to be printed when a death/arrest has been executed, a feature carried over from GTA 2.[1] This opcode is a no operation in Vice City and San Andreas.
Contacts
Id | Enum | Notes |
---|---|---|
0 | CONTACT_LUIGI | |
1 | CONTACT_JOEY | |
2 | CONTACT_TONI | |
3 | CONTACT_FRANKIE | |
4 | CONTACT_ASUKA | |
5 | CONTACT_KENJI | |
6 | CONTACT_RAY | |
7 | CONTACT_LOVE | |
8 | CONTACT_MARIA | unused |
9 | CONTACT_RAY_SUBURBAN | unused |
10 | CONTACT_ASUKA_SUBURBAN | |
11 | CONTACT_KENJI_SUBURBAN | unused |
12 | CONTACT_8BALL | |
13 | CONTACT_HISPANIC | |
14 | CONTACT_YARDIE | |
15 | CONTACT_HOODS |
Keywords
set, declare, on, mission, flag, contact
Reference
- ^ GTAForums: GTA III Pre-Release Discussion
See also
- 0180, declare general mission flag