Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Is there any way to have a syndrome give a secret?  (Read 1122 times)

MrOrangeHorseman

  • Bay Watcher
    • View Profile
Is there any way to have a syndrome give a secret?
« on: August 02, 2019, 11:14:49 pm »

I've modded pyromancy into the game, and I'm trying to mod the game so that you can get it by drinking dragon blood. I've tried pasting in the secret's effects to the raws, and I've tried having the syndrome trigger the pyromancy interaction, but nothing happened at all when I had a dwarf drink dragon blood in the Arena. Is there a way to do this, and if so, how would I go about it?

Here is the code(at least the relevant parts) by the way.
Code: [Select]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
   [SYNDROME]
  [SYN_INGESTED]
[CE_CAN_DO_INTERACTION:START:0]
[CDI:INTERACTION:PYROMANCY]
« Last Edit: August 03, 2019, 02:15:42 pm by MrOrangeHorseman »
Logged
I added lice to hobbit feet last night.
Due to a modding error, I once got sieged by an army of toads lead by a pyromancer. Not toadmen, not giant toads, but toads. The kind cats murder.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Is there any way to have a syndrome give a secret?
« Reply #1 on: August 03, 2019, 12:12:01 am »

does the interaction have the relevant [I_SOURCE:INGESTION] setting in it?
Logged

MrOrangeHorseman

  • Bay Watcher
    • View Profile
Re: Is there any way to have a syndrome give a secret?
« Reply #2 on: August 03, 2019, 12:14:38 am »

does the interaction have the relevant [I_SOURCE:INGESTION] setting in it?

It does indeed.
Logged
I added lice to hobbit feet last night.
Due to a modding error, I once got sieged by an army of toads lead by a pyromancer. Not toadmen, not giant toads, but toads. The kind cats murder.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Is there any way to have a syndrome give a secret?
« Reply #3 on: August 03, 2019, 12:22:21 am »

I guess it would have been better if I said "post the interaction" because in the dragon blood that looks correct. Wait, I see the issue. Check your errorlog I'm betting 100% that stuff is getting logged there

What you're doing (from OP post)
Quote
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
   [BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
      [SYNDROME]
        [SYN_INGESTED]
      [CE_CAN_DO_INTERACTION:START:0]
      [CDI:INTERACTION:PYROMANCY]

What it should be (basically just moving a line)

Quote
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
      [SYNDROME]
        [SYN_INGESTED]
      [CE_CAN_DO_INTERACTION:START:0]
      [CDI:INTERACTION:PYROMANCY]

   [BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
Logged

MrOrangeHorseman

  • Bay Watcher
    • View Profile
Re: Is there any way to have a syndrome give a secret?
« Reply #4 on: August 03, 2019, 09:25:59 am »

I guess it would have been better if I said "post the interaction" because in the dragon blood that looks correct. Wait, I see the issue. Check your errorlog I'm betting 100% that stuff is getting logged there

What you're doing (from OP post)
Quote
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
   [BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
      [SYNDROME]
        [SYN_INGESTED]
      [CE_CAN_DO_INTERACTION:START:0]
      [CDI:INTERACTION:PYROMANCY]

What it should be (basically just moving a line)

Quote
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
      [SYNDROME]
        [SYN_INGESTED]
      [CE_CAN_DO_INTERACTION:START:0]
      [CDI:INTERACTION:PYROMANCY]

   [BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]

I tried this solution and it mostly worked at first(aside from the dwarf I used to do it only being called "Dwarf 1" instead of "Dwarf Pyromancer 1"), but it appears to have gone back to not working. I didn't change anything else in the raws and the error is not being logged in the errorlog, so I don't see what could be causing the issue.
Logged
I added lice to hobbit feet last night.
Due to a modding error, I once got sieged by an army of toads lead by a pyromancer. Not toadmen, not giant toads, but toads. The kind cats murder.