Difference between revisions of "0243"

From GTAMods Wiki
Jump to navigation Jump to search
(created page)
 
(page updates + named values)
Line 1: Line 1:
{{OpCode
+
__NOTOC__
| ini        = 0243=2,{{Hint|%1d%|parameter 1: character handle}} {{Hint|%2d%|parameter 2: integer}}
+
{{Icon|3}} {{Icon|VC}} '''SET_CHAR_PERSONALITY'''
| description = Sets the ped stat of the character
+
<hr />
| p1          = Character handle
+
'''Description'''
| p2          = Ped stat
+
: Sets the ped stat of the character
| game        = [[GTA 3]], [[Vice City]]
+
'''Syntax'''
}}
+
: 0243: set_actor [''char handle''] ped_stats_to [''int'']
This opcode sets the ped stat of the character. The ped stat value corresponds to the line number (starting with 0) in the <code>[[pedstats.dat]]</code> file.
+
'''Parameter'''
 +
: [''char handle'']
 +
:: The handle of the character
 +
: [''int'']
 +
:: Ped stat value
  
==Keywords==
+
This opcode sets the ped stat of the character. The ped stat value corresponds to the line number (starting with 0) in the <code>[[pedstats.dat]]</code> file. The original scripts of GTA III and Vice City primarily used "tough guy" and "geek guy" throughout them.
set, actor, ped, stats, pedstats
+
 
 +
== List of ped stats ==
 +
=== GTA III ===
 +
{| class="wikitable"
 +
! Value || Enum
 +
|-
 +
| 14 || PEDSTAT_GEEK_GUY
 +
|-
 +
| 16 || PEDSTAT_TOUGH_GUY
 +
|}
 +
 
 +
=== Vice City ===
 +
{| class="wikitable"
 +
! Value || Enum
 +
|-
 +
| 0 || PEDSTAT_PLAYER
 +
|-
 +
| 1 || PEDSTAT_COP
 +
|-
 +
| 2 || PEDSTAT_MEDIC
 +
|-
 +
| 3 || PEDSTAT_FIRE
 +
|-
 +
| 4 || PEDSTAT_GANG1
 +
|-
 +
| 5 || PEDSTAT_GANG2
 +
|-
 +
| 6 || PEDSTAT_GANG3
 +
|-
 +
| 7 || PEDSTAT_GANG4
 +
|-
 +
| 8 || PEDSTAT_GANG5
 +
|-
 +
| 9 || PEDSTAT_GANG6
 +
|-
 +
| 10 || PEDSTAT_GANG7
 +
|-
 +
| 11 || PEDSTAT_STREET_GUY
 +
|-
 +
| 12 || PEDSTAT_SUIT_GUY
 +
|-
 +
| 13 || PEDSTAT_SENSIBLE_GUY
 +
|-
 +
| 14 || PEDSTAT_GEEK_GUY
 +
|-
 +
| 15 || PEDSTAT_OLD_GUY
 +
|-
 +
| 16 || PEDSTAT_TOUGH_GUY
 +
|-
 +
| 17 || PEDSTAT_STREET_GIRL
 +
|-
 +
| 18 || PEDSTAT_SUIT_GIRL
 +
|-
 +
| 19 || PEDSTAT_SENSIBLE_GIRL
 +
|-
 +
| 20 || PEDSTAT_GEEK_GIRL
 +
|-
 +
| 21 || PEDSTAT_OLD_GIRL
 +
|-
 +
| 22 || PEDSTAT_TOUGH_GIRL
 +
|-
 +
| 23 || PEDSTAT_TRAMP_MALE
 +
|-
 +
| 24 || PEDSTAT_TRAMP_FEMALE
 +
|-
 +
| 25 || PEDSTAT_TOURIST
 +
|-
 +
| 26 || PEDSTAT_PROSTITUTE
 +
|-
 +
| 27 || PEDSTAT_CRIMINAL
 +
|-
 +
| 28 || PEDSTAT_BUSKER
 +
|-
 +
| 29 || PEDSTAT_TAXIDRIVER
 +
|-
 +
| 30 || PEDSTAT_PSYCHO
 +
|-
 +
| 31 || PEDSTAT_STEWARD
 +
|-
 +
| 32 || PEDSTAT_SPORTSFAN
 +
|-
 +
| 33 || PEDSTAT_SHOPPER
 +
|-
 +
| 34 || PEDSTAT_OLDSHOPPER
 +
|-
 +
| 35 || PEDSTAT_BEACH_GUY
 +
|-
 +
| 36 || PEDSTAT_BEACH_GIRL
 +
|-
 +
| 37 || PEDSTAT_SKATER
 +
|-
 +
| 38 || PEDSTAT_STD_MISSION
 +
|-
 +
| 39 || PEDSTAT_COWARD
 +
|}
 +
 
 +
== Keywords ==
 +
set, actor, character, ped, stat, stats, pedstats, personality
 +
 
 +
[[Category:OpCodes]]

Revision as of 04:13, 9 January 2015

GTA III Vice City SET_CHAR_PERSONALITY


Description

Sets the ped stat of the character

Syntax

0243: set_actor [char handle] ped_stats_to [int]

Parameter

[char handle]
The handle of the character
[int]
Ped stat value

This opcode sets the ped stat of the character. The ped stat value corresponds to the line number (starting with 0) in the pedstats.dat file. The original scripts of GTA III and Vice City primarily used "tough guy" and "geek guy" throughout them.

List of ped stats

GTA III

Value Enum
14 PEDSTAT_GEEK_GUY
16 PEDSTAT_TOUGH_GUY

Vice City

Value Enum
0 PEDSTAT_PLAYER
1 PEDSTAT_COP
2 PEDSTAT_MEDIC
3 PEDSTAT_FIRE
4 PEDSTAT_GANG1
5 PEDSTAT_GANG2
6 PEDSTAT_GANG3
7 PEDSTAT_GANG4
8 PEDSTAT_GANG5
9 PEDSTAT_GANG6
10 PEDSTAT_GANG7
11 PEDSTAT_STREET_GUY
12 PEDSTAT_SUIT_GUY
13 PEDSTAT_SENSIBLE_GUY
14 PEDSTAT_GEEK_GUY
15 PEDSTAT_OLD_GUY
16 PEDSTAT_TOUGH_GUY
17 PEDSTAT_STREET_GIRL
18 PEDSTAT_SUIT_GIRL
19 PEDSTAT_SENSIBLE_GIRL
20 PEDSTAT_GEEK_GIRL
21 PEDSTAT_OLD_GIRL
22 PEDSTAT_TOUGH_GIRL
23 PEDSTAT_TRAMP_MALE
24 PEDSTAT_TRAMP_FEMALE
25 PEDSTAT_TOURIST
26 PEDSTAT_PROSTITUTE
27 PEDSTAT_CRIMINAL
28 PEDSTAT_BUSKER
29 PEDSTAT_TAXIDRIVER
30 PEDSTAT_PSYCHO
31 PEDSTAT_STEWARD
32 PEDSTAT_SPORTSFAN
33 PEDSTAT_SHOPPER
34 PEDSTAT_OLDSHOPPER
35 PEDSTAT_BEACH_GUY
36 PEDSTAT_BEACH_GIRL
37 PEDSTAT_SKATER
38 PEDSTAT_STD_MISSION
39 PEDSTAT_COWARD

Keywords

set, actor, character, ped, stat, stats, pedstats, personality