Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How can i make an animal person spit actual spit?  (Read 911 times)

Korgoth

  • Bay Watcher
    • View Profile
How can i make an animal person spit actual spit?
« on: May 29, 2019, 10:46:19 pm »

So, I actually already been able to give them the ability to spit by adding the following lines to the C_variantion_default raw:

[CV_NEW_TAG:CAN_DO_INTERACTION:MATERIAL_EMISSION]
      [CV_NEW_TAG:CDI:ADV_NAME:Spit]
      [CV_NEW_TAG:CDI:USAGE_HINT:NEGATIVE_SOCIAL_RESPONSE]
      [CV_NEW_TAG:CDI:USAGE_HINT:TORMENT]
      [CV_NEW_TAG:CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
      [CV_NEW_TAG:CDI:MATERIAL:LOCAL_CREATURE_MAT:SPIT:LIQUID_GLOB]
      [CV_NEW_TAG:CDI:VERB:spit:spits:NA]
      [CV_NEW_TAG:CDI:TARGET:C:LINE_OF_SIGHT]
      [CV_NEW_TAG:CDI:TARGET_RANGE:C:15]
      [CV_NEW_TAG:CDI:MAX_TARGET_NUMBER:C:1]
      [CV_NEW_TAG:CDI:WAIT_PERIOD:20]

but everytime i tryed to spit, my charcter spit a melted part of his skin instead of the material_templete of spit.
I already putted the material template on C_variation_default, correct me if i'm wrong, i putted this on the raws:

[CV_NEW_TAG:MATERIAL_TEMPLATE:SPIT_TEMPLATE]
   [CV_NEW_TAG:STATE_COLOR:ALL_SOLID:CLEAR]
   [CV_NEW_TAG:STATE_NAME:ALL_SOLID:frozen spit]
   [CV_NEW_TAG:STATE_ADJ:ALL_SOLID:frozen spit]
   [CV_NEW_TAG:STATE_COLOR:LIQUID:CLEAR]
   [CV_NEW_TAG:STATE_NAME:LIQUID:spit]
   [CV_NEW_TAG:STATE_ADJ:LIQUID:spit]
   [CV_NEW_TAG:STATE_COLOR:GAS:CLEAR]
   [CV_NEW_TAG:STATE_NAME:GAS:boiling spit]
   [CV_NEW_TAG:STATE_ADJ:GAS:boiling spit]
   [CV_NEW_TAG:DISPLAY_COLOR:7:0:0]
   [CV_NEW_TAG:MATERIAL_VALUE:1]
   [CV_NEW_TAG:SPEC_HEAT:4181]
   [CV_NEW_TAG:IGNITE_POINT:10508]
   [CV_NEW_TAG:MELTING_POINT:10000]
   [CV_NEW_TAG:BOILING_POINT:10180]
   [CV_NEW_TAG:HEATDAM_POINT:10250]
   [CV_NEW_TAG:COLDDAM_POINT:9900]
   [CV_NEW_TAG:MAT_FIXED_TEMP:NONE]
   [CV_NEW_TAG:SOLID_DENSITY:500]
   [CV_NEW_TAG:LIQUID_DENSITY:NONE]
   [CV_NEW_TAG:MOLAR_MASS:NONE]
   [CV_NEW_TAG:IMPACT_YIELD:10000]
   [CV_NEW_TAG:IMPACT_FRACTURE:10000]
   [CV_NEW_TAG:IMPACT_STRAIN_AT_YIELD:100]
   [CV_NEW_TAG:COMPRESSIVE_YIELD:10000]
   [CV_NEW_TAG:COMPRESSIVE_FRACTURE:10000]
   [CV_NEW_TAG:COMPRESSIVE_STRAIN_AT_YIELD:100]
   [CV_NEW_TAG:TENSILE_YIELD:10000]
   [CV_NEW_TAG:TENSILE_FRACTURE:10000]
   [CV_NEW_TAG:TENSILE_STRAIN_AT_YIELD:100]
   [CV_NEW_TAG:TORSION_YIELD:10000]
   [CV_NEW_TAG:TORSION_FRACTURE:10000]
   [CV_NEW_TAG:TORSION_STRAIN_AT_YIELD:100]
   [CV_NEW_TAG:SHEAR_YIELD:6600] used high salinity ice
   [CV_NEW_TAG:SHEAR_FRACTURE:6600]
   [CV_NEW_TAG:SHEAR_STRAIN_AT_YIELD:100]
   [CV_NEW_TAG:BENDING_YIELD:10000]
   [CV_NEW_TAG:BENDING_FRACTURE:10000]
   [CV_NEW_TAG:BENDING_STRAIN_AT_YIELD:100]
   [CV_NEW_TAG:MAX_EDGE:500]
   [CV_NEW_TAG:ABSORPTION:100]
   [CV_NEW_TAG:REACTION_CLASS:GROSS_DUMPABLE]
   [CV_NEW_TAG:SPIT_MAP_DESCRIPTOR]
   [CV_NEW_TAG:EVAPORATES]

The game is not detecting the material template, just guessing, because the action of spitting is working, but not the correct material, that's why i'm guessing the game used the melted skin to spit. Does anyone know how to help me with that?
« Last Edit: May 29, 2019, 10:48:01 pm by Korgoth »
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #1 on: May 30, 2019, 07:13:09 am »

try adding this to the creature instead

[CV_NEW_TAG:USE_MATERIAL_TEMPLATE:SPIT:SPIT_TEMPLATE]

Korgoth

  • Bay Watcher
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #2 on: May 30, 2019, 01:41:20 pm »

thank you for your reply, i tried your method and a started to melt the moment a got into to the game with my lion man adventurer until i died :(
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #3 on: May 30, 2019, 01:46:34 pm »

thank you for your reply, i tried your method and a started to melt the moment a got into to the game with my lion man adventurer until i died :(

Can you post the entire creature raw?

Korgoth

  • Bay Watcher
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #4 on: May 31, 2019, 11:20:41 am »

of course! here it is:
[CREATURE:LION_MAN]
   [COPY_TAGS_FROM:LION]
   [APPLY_CREATURE_VARIATION:ANIMAL_PERSON]
   [GO_TO_END]
   [SELECT_CASTE:MALE]
      [CASTE_NAME:lion man:lion men:lion man]
   [SELECT_CASTE:FEMALE]
      [CASTE_NAME:lion woman:lion women:lion woman]
   [SELECT_CASTE:ALL]
   [APPLY_CREATURE_VARIATION:PUNCH_ATTACK]
   [APPLY_CREATURE_VARIATION:KICK_ATTACK]
   [APPLY_CREATURE_VARIATION:CLAW_SCRATCH_ATTACK]
   [APPLY_CREATURE_VARIATION:TOOTH_BITE_ATTACK]
   [APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:711:521:293:1900:2900] 30 kph
   [APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:2990:2257:1525:731:4300:6100] 12 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
   [GO_TO_START]
   [NAME:lion man:lion men:lion man]
   [DESCRIPTION:A person with the head of a lion.]
   [POPULATION_NUMBER:5:10]
   [CLUSTER_NUMBER:1:5]
   [MAXAGE:60:80]
   [CREATURE_TILE:'L']
   [COLOR:6:0:1]
   [GO_TO_TAG:USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
   [TISSUE_LAYER:BY_CATEGORY:FINGER:CLAW:FRONT]
[i've puted the line code right here]
Logged

Roses

  • Bay Watcher
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #5 on: May 31, 2019, 11:29:17 am »

If you just want the lion man to be able to spit, why not add the material directly to the creature raws instead of using a creature variation template?

You can also look at the error log to get a sense of what it's wrong
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #6 on: May 31, 2019, 11:51:55 am »

posting the lion and animal person raws might be helpful too as this is only a third of the raws, but if I had to guess, you're putting these tags in the wrong place of the original raws. creating an entirely new creature should work, but you can try to add this to the end of that code:

Code: [Select]
[GO_TO_END]
[USE_MATERIAL_TEMPLATE:SPIT:SPIT_TEMPLATE]

[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Spit]
[CDI:USAGE_HINT:NEGATIVE_SOCIAL_RESPONSE]
[CDI:USAGE_HINT:TORMENT]
[CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
[CDI:MATERIAL:LOCAL_CREATURE_MAT:SPIT:LIQUID_GLOB]
[CDI:VERB:spit:spits:NA]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]

Warlord255

  • Bay Watcher
  • Master Building Designer
    • View Profile
Re: How can i make an animal person spit actual spit?
« Reply #7 on: June 01, 2019, 11:54:48 am »

Material templates may need to exist in the base creature - for a non-butchery material like soap, tallow, or spit, those material templates can be added and called upon later, such as by a reaction that calls for LOCAL_CREATURE_MAT. In this case, I would suggest adding SPIT_TEMPLATE to the base creature, then apply the creature variation that has the interaction ability.
Logged
DF Vanilla-Spice Revised: Better balance, more !!fun!!
http://www.bay12forums.com/smf/index.php?topic=173907.msg7968772#msg7968772

LeadfootSlim on Steam, LeadfootSlim#1851 on Discord. Hit me up!