Fallout 1 - Reference tables for scripts, stats, critters.

Sduibek

Creator of Fallout Fixt
Moderator
Modder
I was looking for something like these and never found one that was sufficient for what i'm looking for -- the *.h from Fallout 2 work for some of them, but they can and do involve code, pointers and object names that don't exist in Fallout 1.

So without further ado, I bring you the data i've compiled so far, which I use for my own reference and benefit while working on Fallout Fixt. Hopefully it will be of use to others as well! :clap:


CRITTERS: OBJ_ID | NAME_STRING | OBJ_PID
Code:
1          Vault Dweller                    16777217
2          Townsman                    16777218
3          Townsman                    16777219
4          Loser                              16777220
5          Peasant                              16777221
6          Vault Dweller                    16777222
7          Power Armor                    16777223
8          Vault Overseer                    16777224
9          Super Mutant                    16777225
10          Greater Mole Rat          16777226
11          Radscorpion                    16777227
12          Person in Robes                    16777228
13          Merchant                    16777229
14          Zombie Guard                    16777230
15          Combat Armor Female          16777231
16          Glowing One                    16777232
17          Leather Jacket Man          16777233
18          Peasant                              16777234
19          Leather Jacket Woman          16777235
20          Peasant                              16777236
21          Male Combat Armor          16777237
22          Townswoman                    16777238
23          Super Mutant Lieutenant          16777239
24          Townswoman                    16777240
25          Nightkin                    16777241
26          Vault Dweller                    16777242          won't open in F.U.C.K.
27          Male Guard                    16777243          won't open in F.U.C.K.
28          Brahma                              16777244          won't open in F.U.C.K.
29          Peasant                              16777245          won't open in F.U.C.K.
30          Peasant                              16777246          won't open in F.U.C.K.
31          Man in Leather Armor          16777247          won't open in F.U.C.K.
32          Peasant                              16777248          won't open in F.U.C.K.
33          Citizen                              16777249          won't open in F.U.C.K.
34          Vault Dweller                    16777250          won't open in F.U.C.K.
35          Vault Dweller                    16777251          won't open in F.U.C.K.
36          Dog                              16777252          won't open in F.U.C.K.
37          Woman                              16777253          won't open in F.U.C.K.
38          Man                              16777254          won't open in F.U.C.K.
39          Peasant                              16777255          won't open in F.U.C.K.
40          Peasant                              16777256          won't open in F.U.C.K.
41          Person In Power Armor          16777257
42          Boy                              16777258
43          Lesser Centaur                    16777259
44          Mr. Handy                    16777260
45          Floater                              16777261
46          Scribe                              16777262
47          Overseer                    16777263
48          Cave Rat                    16777264
49          Gizmo                              16777265
50          Master                              16777266
51          Deathclaw                    16777267
52          Technician                    16777268
53          Technician                    16777269
54          Technician                    16777270
55          Guard                              16777271
56          Guard                              16777272
57          Guard                              16777273
58          Technician                    16777274
59          Citizen                              16777275          won't open in F.U.C.K.
60          Bum                              16777276
61          Worker                              16777277
62          Cathedral Student          16777278
63          Tandi                              16777279
64          Aradesh                              16777280
65          Seth                              16777281
66          Merchant                    16777282
67          Guard                              16777283
68          Mantis                              16777284
69          Robobrain                    16777285
70          Raider Guard                    16777286
71          Citizen                              16777287
72          Citizen                              16777288
73          Garl's Advisor                    16777289
74          Citizen                              16777290
75          Raider                              16777291
76          Ian                              16777292
77          Floating Eye                    16777293
78          Pig Rat                              16777294
79          Killian Darkwater          16777295
80          Lars                              16777296
81          Izo                              16777297
82          Traveler                    16777298
83          Citizen                              16777299
84          Citizen                              16777300
85          Traveler                    16777301
86          Peasant                              16777302
87          Citizen                              16777303
88          Merchant                    16777304
89          Stranger                    16777305
90          Guard                              16777306
91          Farmer                              16777307
92          Merchant                    16777308
93          Peasant                              16777309
94          Neal                              16777310
95          Peasant                              16777311
96          Worker                              16777312
97          Merchant                    16777313
98          Peasant                              16777314
99          Thug                              16777315
100          Stranger                    16777316
101          Child of the Cathedral          16777317
102          Vinnie                              16777318
103          Traveler                    16777319
104          Set                              16777320
105          Garret                              16777321
106          Zombie                              16777322
107          Nightkin Guard                    16777323
108          Tough Super Mutant          16777324
109          Ghoul Guard                    16777325
110          Undergrounder                    16777326
111          Dan                              16777327
112          Sheriff Greene                    16777328
113          Deputy Fry                    16777329
114          Kane                              16777330
115          Demetre                              16777331
116          Keri                              16777332
117          Rutger                              16777333
118          Daren Hightower                    16777334
119          Martha                              16777335
120          Lorenzo                              16777336
121          Jacob                              16777337
122          Dogmeat                              16777338
123          Jasmine                              16777339          won't open in F.U.C.K.
124          Troy                              16777340
125          Darrell                              16777341
126          Talus                              16777342
127          Thomas                              16777343
128          Mathia                              16777344
129          Razor                              16777345
130          Tangler                              16777346
131          Talius                              16777347
132          Gabriel                              16777348
133          Avellone                    16777349
134          VanHagan                    16777350
135          Surf                              16777351
136          Lasher                              16777352
137          Barracus                    16777353
138          Jeremiah                    16777354
139          Super Mutant Medic          16777355
140          Gideon                              16777356
141          Dominic                              16777357
142          Lucy                              16777358
143          Wiggup                              16777359
144          Viscious                    16777360
145          Super Mutant Lieutenant          16777361
146          Laura                              16777362
147          Morpheus                    16777363
148          Nicole                              16777364
149          Vree                              16777365
150          Maxson                              16777366
151          Rhombus                              16777367
152          Cabbot                              16777368
153          Decker                              16777369
154          Butch                              16777370
155          Loxley                              16777371
156          Jain                              16777372
157          Harold                              16777373
158          Harry                              16777374
159          Tough Rat                    16777375
160          Radiated Rat                    16777376
161          Tough Radiated Rat          16777377
162          Lesser Mole Rat                    16777378
163          Coyote                              16777379
164          Large Brahma                    16777380
165          Deathclaw Spawn                    16777381
166          Nasty Radscorpion          16777382
167          Bloody Floater                    16777383
168          Greater Centaur                    16777384
169          Lowly Peasant                    16777385
170          Peasant                              16777386
171          Farmer                              16777387
172          Worker                              16777388
173          Farmer                              16777389
174          Merchant                    16777390
175          Guard                              16777391
176          Great Mantis                    16777392
177          Mean Pig Rat                    16777393
178          Farmer                              16777394
179          Worker                              16777395
180          Merchant                    16777396
181          Guard                              16777397
182          Glower                              16777398
183          Mad Glowing One                    16777399
184          Zombie                              16777400
185          Guard                              16777401
186          Super Mutant Guard          16777402
187          Mean Super Mutant          16777403          won't open in F.U.C.K.
188          Mad Super Mutant          16777404
189          Deadly Super Mutant          16777405
190          Tough Nightkin                    16777406
191          Deadly Nightkin                    16777407
192          Super Nightkin                    16777408
193          Master Nightkin                    16777409
194          Guard                              16777410
195          Merchant                    16777411
196          Guard                              16777412
197          Guard                              16777413
198          Guard                              16777414
199          Girl                              16777415
200          Scribe                              16777416
201          Guard                              16777417
202          Stranger                    16777418
203          Thug                              16777419
204          Mercenary                    16777420
205          Guard                              16777421
206          Vault Dweller                    16777422
207          Garl                              16777423
208          Doc Morbid                    16777424
209          Gretch                              16777425
210          Tycho                              16777426
211          Jonathan                    16777427
212          Jacob                              16777428
213          Mary                              16777429
214          Rachael                              16777430
215          Caleb                              16777431
216          Traveler                    16777432
217          Stranger                    16777433
218          Thug                              16777434
219          Mercenary                    16777435
220          Guard                              16777436
221          Citizen                              16777437
222          Stranger                    16777438
223          Thug                              16777439
224          Mercenary                    16777440
225          Guard                              16777441
226          Citizen                              16777442
227          Traveler                    16777443
228          Stranger                    16777444
229          Thug                              16777445
230          Mercenary                    16777446
231          Guard                              16777447
232          Citizen                              16777448
233          Traveler                    16777449
234          Mercenary                    16777450
235          Guard                              16777451
236          Traveler                    16777452
237          Stranger                    16777453
238          Thug                              16777454
239          Mercenary                    16777455
240          Guard                              16777456
241          Thug                              16777457
242          Mercenary                    16777458
243          Guard                              16777459
244          Traveler                    16777460
245          Stranger                    16777461
246          Thug                              16777462
247          Mercenary                    16777463
248          Guard                              16777464
249          Traveler                    16777465
250          Stranger                    16777466
251          Thug                              16777467          won't open in F.U.C.K.
252          Mercenary                    16777468
253          Guard                              16777469
254          Traveler                    16777470
255          Stranger                    16777471
256          Thug                              16777472
257          Mercenary                    16777473
258          Guard                              16777474
259          Traveler                    16777475
260          Stranger                    16777476
261          Thug                              16777477
262          Mercenary                    16777478
263          Guard                              16777479
264          Initiate Knight                    16777480          //incorrect critter ID, works OK though
265          Senior Initiate Knight          16777481          //incorrect critter ID, works OK though
266          Apprentice Knight          16777482          //incorrect critter ID, works OK though
267          Journeyman Knight          16777483          //incorrect critter ID, works OK though
268          Senior Knight                    16777484          //incorrect critter ID, works OK though
269          Initiate Knight                    16777485          //incorrect critter ID, works OK though
270          Senior Initiate Knight          16777486          //incorrect critter ID, works OK though
271          Apprentice Knight          16777487          //incorrect critter ID, works OK though
272          Journeyman Knight          16777488          //incorrect critter ID, works OK though
273          Senior Knight                    16777489          //incorrect critter ID, works OK though
274          Junior Paladin                    16777490
275          Paladin                              16777491
276          Senior Paladin                    16777492
277          Junior Paladin                    16777493
278          Paladin                              16777494
279          Senior Paladin                    16777495
280          Initiate Scribe                    16777496
281          Senior Initiate Scribe          16777497
282          Apprentice Scribe          16777498
283          Journeyman Scribe          16777499
284          Senior Scribe                    16777500
285          Initiate Scribe                    16777501
286          Senior Initiate Scribe          16777502
287          Apprentice Scribe          16777503
288          Journeyman Scribe          16777504
289          Senior Scribe                    16777505
290          Robed Man                    16777506
291          Master's Child                    16777507
292          Cathedral Student          16777508
293          Robed Woman                    16777509
294          Master's Child                    16777510
295          Master's Pet                    16777511
296          Master's Thug                    16777512
297          Master's Guard                    16777513
298          Master's Pet                    16777514
299          Master's Thug                    16777515
300          Master's Guard                    16777516
301          Doctor                              16777517
302          Katja                              16777518
303          Sasha                              16777519
304          Mysterious Stranger          16777520
305          Mindless Ghoul                    16777521
306          Eyeball, Mk II                    16777522
307          Egg                              16777523
308          Dugan                              16777524
309          Mother Deathclaw          16777525
310          Hammer                              16777526
311          Dead Traveler                    16777527
312          Kenji                              16777528

STATS: [get_critter_stat(OBJ, # below)]
Code:
0 = Strength
1 = Perception
2 = Endurance
3 = Charisma
4 = Intelligence
5 = Agility
6 = Luck
7 = Maximum Hit Points
8 = Maximum Action Points
9 = Armor Class
10 = Unarmed Damage (I don't think this is used by the game, but haven't tested)
11 = Melee Damage
12 = Carry Weight
13 = Sequence
14 = Healing Rate
15 = Critical Chance %
16 = Better Criticals
17 = Damage Reduction (not %) NORMAL
18 = Damage Reduction (not %) LASER
19 = Damage Reduction (not %) FIRE
20 = Damage Reduction (not %) PLASMA
21 = Damage Reduction (not %) ELECTRICAL [How does this vary from 22?]
22 = Damage Reduction (not %) EMP [How does this vary from 21?]
23 = Damage Reduction (not %) EXPLOSION
24 = Damage Resistance (%) NORMAL
25 = Damage Resistance (%) LASER
26 = Damage Resistance (%) FIRE
27 = Damage Resistance (%) PLASMA
28 = Damage Resistance (%) ELECTRICAL [How does this vary from 29?]
29 = Damage Resistance (%) EMP [How does this vary from 28?]
30 = Damage Resistance (%) EXPLOSION
31 = Radiation Resistance %
32 = Poison Resistance %
33 = Age
34 = Gender (0 Male, 1 Female)
35 = Current HP
36 = Current Poison Level
37 = Current Radiation Level (# of rads)

SCRIPT ACTIONS: [defined under Procedure START in each script file. Only need to define the ones you're going to use.)
Code:
SCRIPT_ACTION ==
2          spatial_p_proc
3          description_p_proc
4          pickup_p_proc
   6          use_p_proc
   7          use_obj_on_p_proc
   8          use_skill_on_p_proc
11          talk_p_proc
12          critter_p_proc
13          combat_p_proc
14          damage_p_proc
15          map_enter_p_proc    [map_init]
16          map_exit_p_proc     [remove_party]
   18          destroy_p_proc
21          look_at_p_proc
22          timed_event_p_proc
23          map_update_p_proc

INJURIES:
Code:
Crippled LEFT LEG          critter_injure(OBJ, 4);
Crippled RIGHT LEG          critter_injure(OBJ, 8);
Crippled LEFT ARM          critter_injure(OBJ, 16);
Crippled RIGHT ARM          critter_injure(OBJ, 32);
Blindness (-5 Perception)          critter_injure(OBJ, 64);

***Add them together to cause multiple at once, for example:***
Cripple BOTH Legs          critter_injure(OBJ, 12);

DIALOG:
Code:
#Script/Dailog modifiers:
[At the end of display_msg, gsay_msg, greply_msg, you can use these to change their opinion of you:]
49 = makes happy(er)
50 = no change
51 = makes angry(er)

#Text colors
-1 = random          (chooses a different color each time it's called or displayed)
0 = yellow          (standard, neutral)
1 = grey          (???)
2 = red                    (angry, hostile, aggitated, mad)
3 = green          (happy, friendly?)
Goes up to 8 but I haven't tested those yet.

SKILLS:
(has_skill(OBJ, #below)
(is_success(do_check(OBJ, SKILL, MOD))
(is_success(roll_vs_skill(OBJ, SKILL, MOD%)))
Code:
0 = Small Guns
1 = Big Guns
2 = Energy Weapons
3 = Unarmed
4 = Melee Weapons
5 = Throwing
6 = First aid
7 = Doctor
8 = Sneak
9 = Lockpick
10 = Steal
11 = Traps
12 = Science
13 = Repair
14 = Speech
15 = Barter
16 = Gambling
17 = Outdoorsman
18+ = Avail Skill Points  [critter_mod_skill]

PERKS:
(has_trait(0, OBJ, #below) -- returns rank (1, 2, 3) if a ranked Perk
Code:
0          Awareness
1          Bonus HtH Attacks
2          Bonus HtH Damage
3          Bonus Move
4          Bonus Ranged Damage
5          Bonus Rate of Fire
6          Earlier Sequence
7          Faster Healing
8          More Criticals
9          Night Vision
10          Presence
11          Rad Resistance
12          Toughness
13          Strong Back
14          Sharpshooter
15          Silent Running
16          Survivalist
17          Master Trader
18          Educated
19          Healer
20          Fortune Finder
21          Better Criticals
22          Empathy
23          Slayer
24          Sniper
25          Silent Death
26          Action Boy
27          Mental Block
28          Lifegiver
29          Dodger
30          Snakeater
31          Mr. Fixit
32          Medic
33          Master Thief
34          Speaker
35          Heave Ho!
36          Friendly Foe
37          Pickpocket
38          Ghost
39          Cult of Personality
40          Scrounger
41          Explorer
42          Flower Child
43          Pathfinder
44          Animal Friend
45          Scout
46          Mysterious Stranger
47          Ranger
48          Quick Pockets
49          Smooth Talker
50          Swift Learner
51          Tag!
52          Mutate!
53          Nuka-Cola Addiction
54          Buffout Addiction
55          Mentats Addiction
56          Psycho Addiction
57          Radaway Addiction
58          Weapon Long Range (should apply to items only; haven't tested.)
59          Weapon Accurate (should apply to items only; haven't tested.)
60          Weapon Penetrate (should apply to items only; haven't tested.)
61          Weapon Knockback (should apply to items only; haven't tested.)
62          Powered Armor  (???)
63           Combat Armor  (???)

TRAITS:
(has_trait(2, OBJ, #below)
Code:
0          Fast Metabolism
1          Bruiser
2          Small Frame
3          One Hander
4          Finesse
5          Kamikaze
6          Heavy Handed
7          Fast Shot
8          Bloody Mess
9          Jinxed
10          Good Natured
11          Chem Reliant
12          Chem Resistant
13          Night Person
14          Skilled
15          Gifted
 
Last edited:
Code:
// SPECIAL System stats
STAT_st              (0)
STAT_pe              (1)
STAT_en              (2)
STAT_ch              (3)
STAT_iq              (4)
STAT_ag              (5)
STAT_lu              (6)
STAT_max_hp          (7)
///  strength, perception, endurance, charisma, intelligence, agility,
///  luck,   // luck MUST be the last basic stat
// derived stats
STAT_max_hit_points     (7)
STAT_max_move_points    (8)
STAT_ac                 (9)
///#define STAT_unarmed_dmg        (10)
STAT_unused             (10)
STAT_melee_dmg          (11)
STAT_carry_amt          (12)
STAT_sequence           (13)
STAT_heal_rate          (14)
STAT_crit_chance        (15)
STAT_better_crit        (16)
STAT_dmg_thresh         (17)
STAT_dmg_thresh_laser   (18)
STAT_dmg_thresh_fire    (19)
STAT_dmg_thresh_plasma  (20)
STAT_dmg_thresh_electrical (21)
STAT_dmg_thresh_emp        (22)
STAT_dmg_thresh_explosion  (23)
STAT_dmg_resist            (24)
STAT_dmg_resist_laser      (25)
STAT_dmg_resist_fire       (26)
STAT_dmg_resist_plasma     (27)
STAT_dmg_resist_electrical (28)
STAT_dmg_resist_emp        (29)
STAT_dmg_resist_explosion  (30)
STAT_rad_resist            (31)
#define STAT_poison_resist         (32)
// poison_resist MUST be the last derived stat
// nonderived stats
STAT_age                   (33)
STAT_gender                (34)
// gender MUST be the last nonderived stat
STAT_current_hp            (35)
STAT_current_poison        (36)
STAT_current_rad           (37)
STAT_real_max_stat         (38)
// extra stat-like values that are treated specially
STAT_max_stat  STAT_current_hp

Taken from define.h :) Mind telling which script you're picking through? :wink:
 
Not going through scripts, was pulling it manually by doing get_critter_stat calls and displaying the results in the game window. I keep forgetting that I can use the F2 files to help with this kind of stuff. GAH. Thank you though!

EDIT: This is why I decided not to be a CS major even though all my homies from high school did that. I'm a smart person but pretty stupid when it comes to programming and such :clap:
 
I'm in high school now, learning how to code my own video game. :)

In fact, I plan to re-create the Fallout engine without bugs or hardcoded limitations once I gain the necessary skills... Although this seems overly ambitious and will require a lot of research into programming, I'll stick in there :P
 
Ghouly89 said:
I'm in high school now, learning how to code my own video game. :)

In fact, I plan to re-create the Fallout engine without bugs or hardcoded limitations once I gain the necessary skills... Although this seems overly ambitious and will require a lot of research into programming, I'll stick in there :P
JUST DON'T TRY TO DO WHAT I'M DOING WITH FALLOUT FIXT, I DON'T LIKE WHEN PEOPLE STEP ON MY TOES LOL LOL LOL
 
Ghouly89 said:
In fact, I plan to re-create the Fallout engine without bugs or hardcoded limitations once I gain the necessary skills... Although this seems overly ambitious and will require a lot of research into programming, I'll stick in there :P

Go for it Ghouly...you might need to kidnap Timeslip to gather some extra knowledge...but joking aside Timeslip is someone that could be very helpful with such an ambitious project. How about starting small and help rebuild some of the Fallout tools we use. :look:
 
.Pixote. said:
Ghouly89 said:
In fact, I plan to re-create the Fallout engine without bugs or hardcoded limitations once I gain the necessary skills... Although this seems overly ambitious and will require a lot of research into programming, I'll stick in there :P

Go for it Ghouly...you might need to kidnap Timeslip to gather some extra knowledge...but joking aside Timeslip is someone that could be very helpful with such an ambitious project. How about starting small and help rebuild some of the Fallout tools we use. :look:
A good start would be implementing all of Timeslip's stuff that is Fallout 2-only into Fallout 1. Seriously. That would be AWESOME>
 
Updated the OP, maybe this will become the ultimate Modder's Reference Thread for Fallout 1 :D ;)
 
UNUSED FALLOUT 1 ARTWORK

UNUSED FALLOUT 1 ARTWORK:

(i.e. these slots are blank, so you can use them for whatever you want with a new or restored graphic)



Code:
SCENERY:

76
77
88
89
|--------(214 through 219)-->
214
215
216
217
218
219
|--------(238 through 242)-->
238
239
240
241
242
--------
322
|--------(499 through 504)-->
499
500
501
502
503
504
|--------(510 through 515)-->
510
511
512
513
514
515
--------
559
560


WALLS:

828
832
935
 
I recommend you add any new artwork to the end of the list, it makes finding and using the art easier. I used the above method for a while with the RP, but quickly gave up when I ran out of used spaces.
 
map_enter_p_proc (or "map_init") called when entering from World Map, on green "exit" grids, SOME ladders, doesn't appear to call on elevators or manholes
 
Sduibek, do you know what that means (red stuff)?

set_local_var(0, 100)
set_local_var(1, 3)
(local_var(2) == 1)
(local_var(3) == 1)
(local_var(4) == 1)
etc.

is this related to reference you wrote, or something else?

and if we're into that... what about this?

(map_var(34) == 1)
etc.
 
Are you talking about my code specifically or just in general?


local_var is basically variables created for that script (door, critter, whatever) to use and reference.

If you ask me, the whole local_var thing is really stupid, because it could just as well be done with NAMED variables, making anyone reading the code have to work a lot less hard.

Like the variables could be SeenPlayer, Hostile, CaughtStealing, and TimeToSleep, instead of local_vars 0, 1, 2, and 3. Blah.

Map_vars aren't too bad, just check the .GAM files in the DATA/MAPS folder.
 
Sduibek said:
Are you talking about my code specifically or just in general?
General stuff.

Sduibek said:
If you ask me, the whole local_var thing is really stupid, because it could just as well be done with NAMED variables, making anyone reading the code have to work a lot less hard.
Exactly.

Sduibek said:
Like the variables could be SeenPlayer, Hostile, CaughtStealing, and TimeToSleep, instead of local_vars 0, 1, 2, and 3. Blah.
This is the answer I was looking for. Thanks.
 
Ohhh okay, here's what critter_injure(2) should do, if read through critter_state:

if (critter_state(self_obj) == 2) then begin
reg_anim_func(2, self_obj);
reg_anim_func(1, 1);
reg_anim_animate(self_obj, 37, -1);
reg_anim_func(3, 0);
 
Does anyone have any understanding how SPECIAL works or it is programmed? Would it be possible to remake it in a different engine?
 
razvan252 said:
Does anyone have any understanding how SPECIAL works or it is programmed? Would it be possible to remake it in a different engine?
Rephrase or elaborate please
 
Continuum said:
Sduibek said:
Are you talking about my code specifically or just in general?
General stuff.

Sduibek said:
If you ask me, the whole local_var thing is really stupid, because it could just as well be done with NAMED variables, making anyone reading the code have to work a lot less hard.
Exactly.

Sduibek said:
Like the variables could be SeenPlayer, Hostile, CaughtStealing, and TimeToSleep, instead of local_vars 0, 1, 2, and 3. Blah.
This is the answer I was looking for. Thanks.
Okay, cool.

Does this mean you're doing some Fallout 1 modding? :)
 
Back
Top