Full list of critter_add_trait values?

Sduibek

Creator of Fallout Fixt
Moderator
Modder
If someone has this or knows how to get it, if you would please and thank you be so kind as to obtain it for me and post here.

I know the basics like actual traits and perks, but the Mapper data (and elsewhere) says you can do things like add team number, script, and others, but give NO information on how to do so, or how to figure out which is which from the currently-used examples.

They can be values from Fallout 1, Fallout 2 or both I don't care. I have yet to find a comprehensive list of all the values possible, so going through code is confusing. For example what the crap does this do:

Code:
critter_add_trait(self_obj, 1, 6, 34);

Anyway. Thank you in advance for your assistance!!!
 
Code:
critter_add_trait(self_obj, 1, 6, 34);

1 - #define TRAIT_OBJECT (1)
6 - #define OBJECT_TEAM_NUM (6)
34 - TEAM number (probably from AI.TXT packet_num=34)


search Fallout documentation:

Code:
critter_add_trait
int                               Critter
      who (ObjectPtr)
      trait_type (int)
      trait (int)
      amount (int)
Adds a particular trait (trait) of a given type (trait_type) to a particular critter (who).  Possible traits under the SPECIAL system are limited to:
     Perks
     Traits
     Object-instance information (such as team #’s, ai-packet #’s, etc.)


and DEFINE.H file
 
ANd again, i HAVE viewed that documentation, but they don';t *** say which is which. There's no breakdown saying:

trait type 1 is perks
trait type 2 is traits
trait type 3 is blue elephants

etc

EDIT: Sorry, not angry at you. I just get really pissed off at incomplete documentation with this sort of thing. Makes it almost useless as an assistance tool
 
Sduibek said:
Where are the .H files? I didn't find them

IIRC, for Fallout2, .H files are in \Fallout 2 Mapper\Scripts\Headers\

I hope that can help you with your great project!

--
Aguirre
 
Aguirre said:
Sduibek said:
Where are the .H files? I didn't find them

IIRC, for Fallout2, .H files are in \Fallout 2 Mapper\Scripts\Headers\

I hope that can help you with your great project!

--
Aguirre
Ohhh okay. I figured they'd be in the main dat files, not the mapper files. I'd deleted those long ago (apparently) so they weren't in mine.

Downloaded the mapper again and you are correct. Thanks!!! :clap:
 
Back
Top