Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Created creature not selectable for adventure mode  (Read 603 times)

Falco

  • Escaped Lunatic
    • View Profile
Created creature not selectable for adventure mode
« on: June 16, 2020, 06:07:07 am »

So I wanted to make a playable dragon for adventure mode. I have never done any modding before. I vaguely followed this ancient thread here: http://www.bay12forums.com/smf/index.php?topic=116305 , but I copied the dragon and made it an own entity to avoid changing any dragons that exist in the world normally (it should never appear, outside of being selectable for adventure mode).
I copied the dragon creature to a new file "raw/creature_dragon.txt", changed it's name to DRAGON_PLAYER, added wings and made the MOUTH into MOUTH_GRASP.

I'm not sure if I need "APPLY_CREATURE_VARIATION" speeds for walking, swimming and so forth, too, as they appear for all the birds I checked. I just added the flying one since I only want to add flying to the creature and leave the other values as they are. (Also I want to make it fly in adventure mode, and only be able to do that if I do indeed have both of my wings still attached, no idea how to do that. Also wings should be without scales (skin, muscles, bones, etc. you know. dragon wings), no idea how to do that either).
Other changes: Added Flyer, can open doors tags.


Code: [Select]
creature_dragon

[OBJECT:CREATURE]

[CREATURE:DRAGON_PLAYER]
[DESCRIPTION:A gigantic reptilian creature.  It is magical and can breathe fire.  These monsters can live for thousands of years.]
[NAME:dragon:dragons:draconic]
[CASTE_NAME:dragon:dragons:draconic]
[CREATURE_TILE:'D'][COLOR:2:0:0]
[PETVALUE:10000]
[PET_EXOTIC]
[TRAINABLE]
[MOUNT_EXOTIC]
[FLIER]
[CANOPENDOORS]
[APPLY_CREATURE_VARIATION:STANDARD_FLYING_GAITS:900:528:352:176:1900:2900] 50 kph
[BIOME:ANY_LAND]
[FREQUENCY:5]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Breathe fire]
[CDI:USAGE_HINT:ATTACK]
[CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
[CDI:FLOW:DRAGONFIRE]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:50]
[FIREIMMUNE_SUPER]
[FANCIFUL]
[LARGE_PREDATOR]
[MEGABEAST][DIFFICULTY:10]
[ATTACK_TRIGGER:80:10000:100000]
[SPHERE:FIRE]
[SPHERE:WEALTH]
[CURIOUSBEAST_ITEM]
[NOFEAR][NOEXERT]
[BUILDINGDESTROYER:2]
[GRASSTRAMPLE:50]
[BONECARN]
[PREFSTRING:terrible majesty]
[BODY:QUADRUPED_NECK:2WINGS:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:4TOES_FQ_REG:4TOES_RQ_REG:MOUTH_GRASP:TONGUE:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:SKIN]
[REMOVE_MATERIAL:LEATHER]
[REMOVE_MATERIAL:PARCHMENT]
[REMOVE_MATERIAL:HAIR]
[USE_MATERIAL_TEMPLATE:SCALE:SCALE_TEMPLATE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:SKIN]
[REMOVE_TISSUE:HAIR]
[USE_TISSUE_TEMPLATE:SCALE:SCALE_TEMPLATE]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SCALE:FAT:MUSCLE:BONE:CARTILAGE]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:TOE:CLAW:FRONT]
[BODY_DETAIL_PLAN:LEATHERY_EGG_MATERIALS]
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SCALE:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
[CREATURE_CLASS:GENERAL_POISON]
[GETS_WOUND_INFECTIONS]
[GETS_INFECTIONS_FROM_ROT]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[BODY_SIZE:0:0:6000]
[BODY_SIZE:1000:0:25000000]
[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ATTACK:CLAW:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:claw:claws]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ALL_ACTIVE]
[MENT_ATT_RANGE:WILLPOWER:3000:3500:3750:4000:4250:4500:5000]
[LAIR:SIMPLE_BURROW:100]
[HABIT_NUM:TEST_ALL]
[HABIT:COLLECT_WEALTH:100]
[NATURAL_SKILL:BITE:6]
[NATURAL_SKILL:GRASP_STRIKE:6]
[NATURAL_SKILL:RANGED_COMBAT:6]
[NATURAL_SKILL:MELEE_COMBAT:6]
[NATURAL_SKILL:DODGING:6]
[NATURAL_SKILL:SITUATIONAL_AWARENESS:6]
[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:730:561:351:1900:2900] 25 kph
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:2990:2257:1525:731:4300:6100] 12 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2990:2257:1525:731:4300:6100] 12 kph
[SWIMS_INNATE]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[LAYS_EGGS]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGGSHELL:SOLID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
[EGG_SIZE:6100]
[CLUTCH_SIZE:1:3]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:SCALE]
[TL_COLOR_MODIFIER:GREEN:1]
[TLCM_NOUN:scales:PLURAL]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:15]
[COLDDAM_POINT:NONE]
[HEATDAM_POINT:NONE]
[IGNITE_POINT:NONE]
[IF_EXISTS_SET_MELTING_POINT:55000]
[IF_EXISTS_SET_BOILING_POINT:57000]
[SPEC_HEAT:30000]
Need to make sure blood and pus aren't solid at regular temperatures.
[SELECT_MATERIAL:BLOOD]
[PLUS_MATERIAL:PUS]
[MELTING_POINT:10000]

I want to be able to butcher things without tools, or just eat corpses/body parts as they are. No idea how to do that either. Probably add some kind of reaction that doesn't need a tool (but perhaps needs claws or teeth) and attach it to the creature. I couldn't find the default butcher that's available for adventurers to copy and alter it.

I added a new body part to "raw/body_dragon.txt", containing MOUTH_GRASP.

Code: [Select]
body_dragon

[OBJECT:BODY]

[BODY:MOUTH_GRASP]
[BP:MOUTH:mouth:STP][CONTYPE:HEAD][MOUTH][SMALL][EMBEDDED][APERTURE][CATEGORY:MOUTH][GRASP]
[DEFAULT_RELSIZE:20]

Finally I added the entity to "raw/entity_dragon.txt" in order to make the dragon playable.

Code: [Select]
entity_dragon

[OBJECT:ENTITY]

[ENTITY:DRAGON_PLAYER]
[INDIV_CONTROLLABLE]
[ADVENTURER_TIER:4]
[CREATURE:DRAGON_PLAYER]

After starting the game and generating a new world, I can not find my creature in the list of creatures to pick from. And it probably doesn't work the way I want either. (butchering for example, or needing wings to fly, or fly at all.)
« Last Edit: June 16, 2020, 06:22:05 am by Falco »
Logged

Iä! RIAKTOR!

  • Bay Watcher
    • View Profile
Re: Created creature not selectable for adventure mode
« Reply #1 on: June 16, 2020, 07:12:44 am »

Your entity does not exist in worlds. You need to make dragon outsider be playable. Copy outsider_controllable from humans.
Logged

Falco

  • Escaped Lunatic
    • View Profile
Re: Created creature not selectable for adventure mode
« Reply #2 on: June 16, 2020, 07:50:08 am »

Thank you. That made it appear.
Logged