Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: What are the limitations on CE_BODY_MAT_INTERACTION?  (Read 540 times)

Demonic Gophers

  • Bay Watcher
    • View Profile
    • The Tunnels
What are the limitations on CE_BODY_MAT_INTERACTION?
« on: August 17, 2018, 03:53:43 pm »

I was trying to create a potion that would temporarily make the drinker's blood and tears apply an interaction.  I don't get anything in the error log, but neither blood nor tears seem to have any effect in arena mode testing.  Does CE_BODY_MAT_INTERACTION actually work in the arena?  What materials is it able to affect?

The interaction works fine when applied directly using CE_CAN_DO_INTERACTION.
Logged
*Digs tunnel under thread.*
I also answer to Gophers and DG.
Quote from: Shades of Gray
*Says something inspiring and quote worthy.*
Opinions are great, they're like onions with pi.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: What are the limitations on CE_BODY_MAT_INTERACTION?
« Reply #1 on: August 17, 2018, 05:31:40 pm »

how did you try to make use of it?

like this? [CE_BODY_MAT_INTERACTION:MAT_TOKEN:RESERVED_BLOOD:START:0]

or [CE_BODY_MAT_INTERACTION:LOCAL_CREATURE_MAT:BLOOD:START:0] <-- I'm not sure if this is valid. Since the only example is [CE_BODY_MAT_INTERACTION:MAT_TOKEN:RESERVED_BLOOD:START:0] which doesn't even match with anything else in the raws (MAT_TOKEN?? RESERVED_BLOOD??) these things may just be a one off my toady for vampires
Logged

Demonic Gophers

  • Bay Watcher
    • View Profile
    • The Tunnels
Re: What are the limitations on CE_BODY_MAT_INTERACTION?
« Reply #2 on: August 17, 2018, 05:53:47 pm »

CE_BODY_MAT_INTERACTION:MAT_TOKEN:TEARS:START:0:END:100
CE_BODY_MAT_INTERACTION:MAT_TOKEN:RESERVED_BLOOD:START:0:END:100

LOCAL_CREATURE_MAT:(material) gives an error.  I did some searching in the mod forum and saw something suggesting that it's implied, as it wouldn't make sense to use any other creature's materials.

I'm guessing that RESERVED_BLOOD refers to the material that a creature bleeds, no matter what it's called, so that vampirism can still be transmitted by things that bleed goo or slime or booze or whatever.  MAT_TOKEN:TEARS and MAT_TOKEN:BLOOD don't cause any errors, but also weren't doing anything, so I tried RESERVED_BLOOD in case that was the only thing that actually works.  Still didn't seem to have any effect, though.

I suppose it might only function if it's permanent, which would be a nuisance.
Logged
*Digs tunnel under thread.*
I also answer to Gophers and DG.
Quote from: Shades of Gray
*Says something inspiring and quote worthy.*
Opinions are great, they're like onions with pi.