Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Modding creature body to come out as wooden logs instead of dead bodies??  (Read 750 times)

DWARFFRAWD

  • Bay Watcher
    • View Profile

[CREATURE:TREANT]
   [DESCRIPTION:A large-sized creature dedicated to the ruthless protection of nature.]
   [NAME:treant:treants:treant]
   [CASTE_NAME:treant:treants:treant]
   [CREATURE_TILE:'T'][COLOR:6:0:0]
   [INTELLIGENT][NO_EAT][NO_DRINK][NO_SLEEP][SLOW_LEARNER]
   [NOFEAR][NOBREATHE][EXTRAVISION]
   [NO_GENDER]
   [GOOD]
   [BIOME:ANY_FOREST]
   [NATURAL_SKILL:DISCIPLINE:5]
   [CLUSTER_NUMBER:1:6]
   [POPULATION_NUMBER:100:300]
   [PREFSTRING:nature]
   [CREATURE_CLASS:PLANT]
   [CREATURE_CLASS:NATURE_ELEMENTAL]
   [BODY:HUMANOID_NECK:2EYES:2EARS:MOUTH:NOSE:5FINGERS:BRAIN]
   [TISSUE:WOOD]
      [TISSUE_NAME:wood:NP]
      [TISSUE_MATERIAL:PLANT_MAT:OAK:WOOD]
      [MUSCULAR]
      [FUNCTIONAL]
      [STRUCTURAL]
      [RELATIVE_THICKNESS:1]
      [CONNECTS]
      [TISSUE_SHAPE:LAYER]
   [TISSUE_LAYER:BY_CATEGORY:ALL:WOOD]
   [ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
      [ATTACK_SKILL:GRASP_STRIKE]
      [ATTACK_VERB:punch:punches]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PREPARE_AND_RECOVER:3:3]
      [ATTACK_FLAG_WITH]
      [ATTACK_PRIORITY:MAIN]
   [ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
      [ATTACK_SKILL:STANCE_STRIKE]
      [ATTACK_VERB:kick:kicks]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PREPARE_AND_RECOVER:4:4]
      [ATTACK_FLAG_WITH]
      [ATTACK_PRIORITY:SECOND]
      [ATTACK_FLAG_BAD_MULTIATTACK]
   [ATTACK:BITE:BODYPART:BY_CATEGORY:MOUTH]
      [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:SECOND]
      [ATTACK_FLAG_CANLATCH]
   [ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:OAK]
   [APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
   [APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:5341:4723:4112:1254:6433:7900] 7 kph
   [APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2990:2257:1525:731:4300:6100] 12 kph
   [SWIMS_INNATE]


Like Goblin's trolls, I want to make a pet for the Elf, so I'm going to add a tree giant concept called ㅆreant.
I'm going to mod so that when Treant dies, he leaves an oak log instead of a corpse.
But when he dies, the unnamed log is created, not the oak log.
I can't find out what the hell is wrong with me. Please help me!
« Last Edit: February 11, 2023, 10:33:58 am by DWARFFRAWD »
Logged

brewer bob

  • Bay Watcher
  • euphoric due to inebriation
    • View Profile
Re: Modding creature body to come out as wooden logs instead of dead bodies??
« Reply #1 on: February 11, 2023, 11:43:07 am »

You've got the item corpse wrong.

It should be:

 [ITEMCORPSE:WOOD:NO_SUBTYPE:PLANT_MAT:OAK:WOOD]

DWARFFRAWD

  • Bay Watcher
    • View Profile
Re: Modding creature body to come out as wooden logs instead of dead bodies??
« Reply #2 on: February 11, 2023, 11:49:41 am »

You've got the item corpse wrong.

It should be:

 [ITEMCORPSE:WOOD:NO_SUBTYPE:PLANT_MAT:OAK:WOOD]

You are the best! It worked out right away! Thanks!
Logged