CRE v1 (BG,BG2, EE)

Sorted by order in the file (sort alphabetically)

'Memorized spell' entries occur only as child entries for 'spell memorization data' entries (memorization_spell).

Main Header

For readability, sound files and status flags are listed separately.

Special keys
KeyType
both_namesSets these: name_long,name_short
both_names-strrefSets these: name_long-strref,name_short-strref
hpSets these: hp_current,hp_max
level_allSets these: level1,level2,level3
acSets these: ac_natural,ac_effective
colorsComma-separated list (color_metal,color_minor,color_major,color_skin,color_leather,color_armor,color_hair)
savesComma-separated list (save_vs_death,save_vs_wands,save_vs_polymorph,save_vs_breath,save_vs_spells)
abilsComma-separated list (str,int,wis,dex,con,cha)

Standard keys
KeyType
name_longStrref
name_shortStrref
show_longnameBoolean
no_corpseBoolean
permanent_corpseBoolean
original_class_fighterBoolean
original_class_mageBoolean
original_class_clericBoolean
original_class_thiefBoolean
original_class_druidBoolean
original_class_rangerBoolean
fallen_paladinBoolean
fallen_rangerBoolean
exportableBoolean
hide_injury_statusBoolean
bit_13Boolean
moves_between_areasBoolean
been_in_partyBoolean
bit_16Boolean
reset_bit_16Boolean
no_exploding_deathBoolean
ignore_nightmare_modeBoolean
no_tooltipBoolean
allegiance_trackingBoolean
general_trackingBoolean
race_trackingBoolean
class_trackingBoolean
specifics_trackingBoolean
gender_trackingBoolean
alignment_trackingBoolean
xp_valueInteger
xpInteger
powerInteger
hp_currentInteger
hp_maxInteger
animationid lookup (animate)
color_metalInteger
color_minorInteger
color_majorInteger
color_skinInteger
color_leatherInteger
color_armorInteger
color_hairInteger
portrait_smallString (8 bytes)
portrait_largeString (8 bytes)
reputationInteger
hide_in_shadowsInteger
ac_naturalInteger
ac_effectiveInteger
ac_mod_crushingInteger
ac_mod_missileInteger
ac_mod_piercingInteger
ac_mod_slashingInteger
thac0Integer
attacksInteger
save_vs_deathInteger
save_vs_wandsInteger
save_vs_polymorphInteger
save_vs_breathInteger
save_vs_spellsInteger
resist_fireInteger
resist_coldInteger
resist_electricityInteger
resist_acidInteger
resist_magicInteger
resist_magic_fireInteger
resist_magic_coldInteger
resist_slashingInteger
resist_crushingInteger
resist_piercingInteger
resist_missileInteger
detect_illusionInteger
set_trapsInteger
loreInteger
pick_locksInteger
move_silentlyInteger
find_trapsInteger
pick_pocketsInteger
fatigueInteger
intoxicationInteger
luckInteger
nightmare_mode_appliedInteger
translucencyInteger
rep_gain_on_deathInteger
rep_gain_on_joinInteger
rep_gain_on_leaveInteger
turn_undead_levelInteger
trackingInteger
level1Integer
level2Integer
level3Integer
sexid lookup (gender)
str_baseInteger
str_exInteger
strStrength (enter as integer or in 18/76 style)
intInteger
wisInteger
dexInteger
conInteger
chaInteger
moraleInteger
morale_breakInteger
racial_enemyid lookup (race)
morale_recoveryInteger
kitid lookup (kit)
script_overrideString (8 bytes)
script_classString (8 bytes)
script_raceString (8 bytes)
script_generalString (8 bytes)
script_defaultString (8 bytes)
allegianceid lookup (ea)
generalid lookup (general)
raceid lookup (race)
classid lookup (class)
specificsid lookup (specific)
genderid lookup (gender)
alignmentid lookup (alignmen)
dvString (32 bytes)
script_nameString (32 bytes)
dialogString (8 bytes)

Sounds
KeyType
status_sleepingBoolean
status_berserkBoolean
status_panicBoolean
status_stunnedBoolean
status_invisibleBoolean
status_helplessBoolean
status_frozen_deathBoolean
status_stone_deathBoolean
status_exploding_deathBoolean
status_flame_deathBoolean
status_acid_deathBoolean
status_deadBoolean
status_silencedBoolean
status_charmedBoolean
status_poisonedBoolean
status_hastedBoolean
status_slowedBoolean
status_infravisionBoolean
status_blindBoolean
status_diseasedBoolean
status_feeblemindedBoolean
status_nondetectionBoolean
status_improvedinvisibilityBoolean
status_blessBoolean
status_chantBoolean
status_draw_upon_holy_mightBoolean
status_luckBoolean
status_aidBoolean
status_chantbadBoolean
status_blurBoolean
status_mirrorimageBoolean
status_confusedBoolean

Known Spell (knownspell)

Standard keys
KeyType
resrefString (8 bytes)
levelInteger
typeLookup (0=Priest, 1=Wizard, 2=Innate)

Spell Memorization Data (memorization)

Standard keys
KeyType
levelInteger
typeLookup (0=Priest, 1=Wizard, 2=Innate)

Memorized Spell (memorizedspell)

'Memorized spell' entries occur only as child entries for 'spell memorization data' entries (memorization_spell)

Standard keys
KeyType
resrefString (8 bytes)
memorized[1]Boolean
disabledBoolean

Effect (fx)

Standard keys
KeyType
opcodeInteger
target[1]Lookup (0=None, 1=Self, 2=PresetTarget, 3=Party, 4=Everyone, 5=EveryoneExceptParty, 6=CasterGroup, 7=TargetGroup, 8=EveryoneExceptSelf, 9=OriginalCaster)
powerInteger
parameter1Integer
parameter2Integer
timing[9]Lookup (0=InstantLimited, 1=InstantPermanent, 2=Equipped, 3=DelayLimited, 4=DelayPermanent, 5=DelayEquipped, 6=LimitedAfterDuration, 7=PermanentAfterDuration, 9=InstantPermanentAfterDeath)
durationInteger
probability1[100]Integer
probability2Integer
resourceString (8 bytes)
dicenumberInteger
dicesizeInteger
save_vs_spellsBoolean
save_vs_breathBoolean
save_vs_poisonBoolean
save_vs_wandsBoolean
save_vs_polymorphBoolean
ignore_primary_targetBoolean
ignore_secondary_targetBoolean
bypass_mirror_imageBoolean
ignore_difficultyBoolean
tobex_stackingBoolean
save_bonusInteger
tobex_stacking_idInteger
specialInteger
primaryInteger
resist_dispelInteger
parameter3Integer
parameter4Integer
parameter5Integer
resource2String (8 bytes)
resource3String (8 bytes)
parent_typeLookup (0=None, 1=Spell, 2=Item)
parent_resourceString (8 bytes)
sectypeInteger

Item (item)

Standard keys
KeyType
resrefString (8 bytes)
durationInteger
charges_1Integer
charges_2Integer
charges_3Integer
identifiedBoolean
unstealableBoolean
stolenBoolean
undroppableBoolean

Item slot (item_slot)

Item slots are related to items in a way that core editing tools struggle with; use the bespoke lib_cre functions.

Standard keys
KeyType
itemInteger