Difference between revisions of "0181"

From GTAMods Wiki
Jump to navigation Jump to search
m
(added description)
 
Line 1: Line 1:
{{Icon|3}} '''DECLARE_MISSION_FLAG_FOR_CONTACT'''
+
__NOTOC__
<hr />
+
{{OpCode
'''Description'''
+
| games      = {{Icon|t}}
: Links a global variable to the onmission [[wikipedia:Flag field|flag]] for specific contacts
+
| command    = DECLARE_MISSION_FLAG_FOR_CONTACT
'''Syntax'''
+
| description = Links a global variable to the onmission [[wikipedia:Flag field|flag]] for specific contacts
: 0181: on_mission_for [''int''] flag = [''global var'']
+
| syntax1    = {{Icon|3}} 0181: on_mission_for [''int''] flag = [''global var'']
'''Parameter'''
+
| syntax2    = {{Icon|VC}} {{Icon|SA}} 0181: nop
: [''int'']
+
| p1t        = [''int'']
:: Contact value
+
| p1d        = Contact id ([[#Contacts|see below]])
: [''global var'']
+
| p2t        = [''global var'']
:: Global variable
+
| 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.
! Contact || [[SCM language III/VC definitions#CONTACT|Enum]] || Notes
+
 
 +
== 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 ||
 
|}
 
|}
 
This opcode is a no operation in Vice City and San Andreas.
 
  
 
== 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 ==
 
* {{Icon|t}} [[0180]], declare general mission flag
 
* {{Icon|t}} [[0180]], declare general mission flag
 
[[Category:OpCodes]]
 

Latest revision as of 22:09, 23 November 2016

GTA III Vice City San Andreas DECLARE_MISSION_FLAG_FOR_CONTACT


Description
Links a global variable to the onmission flag for specific contacts
Syntax
GTA III 0181: on_mission_for [int] flag = [global var]
Vice City San Andreas 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

See also

  • GTA III Vice City San Andreas 0180, declare general mission flag