Difference between revisions of "0243"
Jump to navigation
Jump to search
(page updates + named values) |
(combine tables) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | {{Icon|3}} {{Icon|VC}} | + | {{OpCode |
− | + | | games = {{Icon|3}} {{Icon|VC}} | |
− | + | | command = SET_CHAR_PERSONALITY | |
− | + | | description = Sets the ped stat of the character | |
− | + | | syntax1 = 0243: set_actor [''char handle''] ped_stats_to [''int''] | |
− | + | | p1t = [''char handle''] | |
− | + | | p1d = The handle of the character | |
− | + | | p2t = [''int''] | |
− | + | | p2d = Ped stat ([[#Ped stats|see below]]) | |
− | + | }} | |
− | |||
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. | 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. | ||
− | == | + | == Ped stats == |
− | + | {|class="wikitable sortable center-col-1" | |
− | {| class="wikitable" | + | !Ped stat ||Games ||[[SCM language III/VC definitions#PEDSTAT|Enum]]{{ref|1}} |
− | ! | ||
|- | |- | ||
− | | | + | |0 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_PLAYER |
|- | |- | ||
− | | | + | |1 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_COP |
− | |} | ||
− | |||
− | |||
− | {| | ||
− | |||
|- | |- | ||
− | | | + | |2 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_MEDIC |
|- | |- | ||
− | | | + | |3 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_FIRE |
|- | |- | ||
− | | | + | |4 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG1 |
|- | |- | ||
− | | 3 || | + | |5 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG2 |
|- | |- | ||
− | | | + | |6 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG3 |
|- | |- | ||
− | | | + | |7 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG4 |
|- | |- | ||
− | | | + | |8 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG5 |
|- | |- | ||
− | | | + | |9 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG6 |
|- | |- | ||
− | | | + | |10 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GANG7 |
|- | |- | ||
− | | | + | |11 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_STREET_GUY |
|- | |- | ||
− | | | + | |12 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_SUIT_GUY |
|- | |- | ||
− | | | + | |13 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_SENSIBLE_GUY |
|- | |- | ||
− | | | + | |14 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GEEK_GUY |
|- | |- | ||
− | | | + | |15 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_OLD_GUY |
|- | |- | ||
− | | | + | |16 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_TOUGH_GUY |
|- | |- | ||
− | | | + | |17 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_STREET_GIRL |
|- | |- | ||
− | | | + | |18 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_SUIT_GIRL |
|- | |- | ||
− | | | + | |19 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_SENSIBLE_GIRL |
|- | |- | ||
− | | | + | |20 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_GEEK_GIRL |
|- | |- | ||
− | | | + | |21 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_OLD_GIRL |
|- | |- | ||
− | | | + | |22 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_TOUGH_GIRL |
|- | |- | ||
− | | | + | |23 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_TRAMP_MALE |
|- | |- | ||
− | | | + | |24 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_TRAMP_FEMALE |
|- | |- | ||
− | | | + | |25 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_TOURIST |
|- | |- | ||
− | | | + | |26 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_PROSTITUTE |
|- | |- | ||
− | | | + | |27 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_CRIMINAL |
|- | |- | ||
− | | | + | |28 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_BUSKER |
|- | |- | ||
− | | | + | |29 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_TAXIDRIVER |
|- | |- | ||
− | | | + | |30 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_PSYCHO |
|- | |- | ||
− | | | + | |31 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_STEWARD |
|- | |- | ||
− | | | + | |32 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_SPORTSFAN |
|- | |- | ||
− | | | + | |33 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_SHOPPER |
|- | |- | ||
− | | | + | |34 ||{{Icon|3}} {{Icon|VC}} ||PEDSTAT_OLDSHOPPER |
|- | |- | ||
− | | | + | |35 ||{{Icon|VC}} ||PEDSTAT_BEACH_GUY |
|- | |- | ||
− | | | + | |36 ||{{Icon|VC}}||PEDSTAT_BEACH_GIRL |
|- | |- | ||
− | | | + | |37 ||{{Icon|VC}}||PEDSTAT_SKATER |
|- | |- | ||
− | | | + | |38 ||{{Icon|VC}}||PEDSTAT_STD_MISSION |
|- | |- | ||
− | | | + | |39 ||{{Icon|VC}}||PEDSTAT_COWARD |
− | | | ||
− | | | ||
− | |||
− | |||
|} | |} | ||
+ | # {{note|1}} Enums for GTA III are inferred from Vice City's enums. | ||
== Keywords == | == Keywords == | ||
set, actor, character, ped, stat, stats, pedstats, personality | set, actor, character, ped, stat, stats, pedstats, personality | ||
− | |||
− |
Latest revision as of 02:31, 12 December 2016
- 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 (see below)
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.
Ped stats
Ped stat | Games | Enum[1] |
---|---|---|
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 |
- ^ Enums for GTA III are inferred from Vice City's enums.
Keywords
set, actor, character, ped, stat, stats, pedstats, personality