Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Problems with Paralysis and Material Emission interactions, [SOLVED]  (Read 2656 times)

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile

I am currently adding a new race to my dwarf fortress game, the Oceanids. They are an amphibious race, consisting of five castes, the male Pontae, who are average sized grey skinned humanoids who feel no pain but are otherwise unremarkable, the two rare non-breeding beast castes, the troll like Rahab, the terrifyingly massive serpentine creature, the Leviathan, and two magic using female castes, the Nereids and Naiads. As you probably guessed, I am having severe problems with the magic users.
Everything else has gone 'swimmingly' (Ha!), but I can not seem to get their interactions to work. Can you guys take a look?

The Nereids, intended to have the ability to paralyze enemies with a single touch
Spoiler (click to show/hide)

The Naiads, intended to make up for the Oceanids lack of reanged weapons by throwing ice. (Temperature may become a problem here)
Spoiler (click to show/hide)

Problems:
Nereid interaction shows up as "unknown interaction". It has no effect.
Naiad interaction shows up correctly, but Naiads will not use it, and when attempting to do so manually in the arena, nothing can be targeted.



I only recently learned how to mod df, so bear with me please  :).
Any help would be greatly appreciated, thank you.

« Last Edit: December 10, 2013, 01:26:11 pm by Prudent Viper »
Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Problems with interactions, help required.
« Reply #1 on: December 08, 2013, 02:27:12 pm »

You need to make a new interaction if you want to add a syndrome; CAN_DO_INTERACTION is not a new interaction.

[CDI:MATERIAL:ICE:NONE]

Check your errorlog.

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile
Re: Problems with interactions, help required.
« Reply #2 on: December 08, 2013, 02:32:03 pm »

Ummm, how?
I looked at the interaction_default file earlier, with both modding guide and interaction tokens in hand... and felt like weeping :)

Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Problems with interactions, help required.
« Reply #3 on: December 08, 2013, 02:34:52 pm »

Code: [Select]
[INTERACTION:NEREID_PARALYZE]
      [I_SOURCE:CREATURE_ACTION]
            [I_TARGET:A:CREATURE]
                  [IT_LOCATION:CONTEXT_CREATURE]
                  [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
            [I_EFFECT:ADD_SYNDROME]
                  [IE_TARGET:A]
                  [IE_IMMEDIATE]
                  [SYNDROME]
                        [SYN_NAME:visions of beauty]
                        [SYN_AFFECTED_CLASS:GENERAL_POISON]
                        [SYN_IMMUNE_CREATURE:OCEANID:ALL]
                        [CE_PARALYSIS:SEV:100:PROB:100:RESISTABLE:SIZE_DILUTES:START:5:PEAK:10:END:20]

You can literally copy+paste everything above [SYNDROME] for that purpose.

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile
Re: Problems with interactions, help required.
« Reply #4 on: December 08, 2013, 02:49:13 pm »

And, errr then what? I pasted it into interaction_default, do I need to change anything else?  Also changed Naiads to [CDI:MATERIAL:ICE:NONE], still not working. Maybe ICE isn't a material? I thought it would be called that, and didn't really know how to check.

Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Problems with interactions, help required.
« Reply #5 on: December 08, 2013, 02:58:30 pm »

You need to change [CAN_DO_INTERACTION:ADD_SYNDROME] to [CAN_DO_INTERACTION:NEREID_PARALYZE], at least.

ICE is indeed not a material. You want WATER:SOLID_GLOB, I believe. I'll check in a bit.

Ed: Yes, WATER:SOLID_GLOB. That's how I did it for the gerudo ice sorceresses.
« Last Edit: December 08, 2013, 03:00:48 pm by Knight Otu »
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile
Re: Problems with interactions, help required.
« Reply #6 on: December 08, 2013, 03:07:10 pm »

Ah ha! The Naiad works! Thanks Otu.
Some progress with the Nereid, (had already changed it to [CAN_DO_INTERACTION:NEREID_PARALYZE]), added [SYN_CONTACT] and the interaction seems to be working, but the syndrome it applies is having no effect. I copied it from the GCS raws, so it should be fine, (maybe I should remove RESISTABLE, or perhaps I need to add the syndrome to a bodypart?)
Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Problems with interactions, help required.
« Reply #7 on: December 08, 2013, 03:10:30 pm »

PARALYZE has no BP; it may be too short. Also, the SEV is probably too low.

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Problems with interactions, help required.
« Reply #8 on: December 08, 2013, 03:16:58 pm »

Looking at the numbers, it may be simply too short to do anything. 20 time units is basically nothing. A day in fortress mode is 1200 time units, for comparison. GCS victims rarely live long enough for the paralysis to be meaningful, anyway. (Pre-post edit - what Putnam said)
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Problems with interactions, help required.
« Reply #9 on: December 08, 2013, 03:18:35 pm »

And by "probably", btw, I mean "definitely". SEV is based on amount injected; interactions "inject" the smallest quantum possible of stuff.

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile
Re: Problems with interactions, help required.
« Reply #10 on: December 08, 2013, 03:29:36 pm »

Here's the raws as they look now with proposed changes. Still no result.
Spoiler (click to show/hide)
As you see, I increased the duration and severity by a hell of a lot.

I'm starting to wonder if it might be a targeting issue. When using the interaction manually, it does not allow me to target anything. Rather, I use the interaction, and then nothing happens. The interaction has been used, because it is now on cooldown. ?
« Last Edit: December 08, 2013, 03:31:35 pm by Prudent Viper »
Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Problems with interactions, help required.
« Reply #11 on: December 08, 2013, 03:43:52 pm »

The syndrome does not go in the CAN_DO_INTERACTION.

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile
Re: Problems with interactions, help required.
« Reply #12 on: December 08, 2013, 03:47:41 pm »

Sorry to sound stupid, but where does it go then?
Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Prudent Viper

  • Bay Watcher
  • Professional Unprofessional
    • View Profile
Re: Problems with interactions, help required.
« Reply #13 on: December 08, 2013, 03:55:54 pm »

After playing around with it, I found that the interaction targets the neried itself. It's pretty hilarious to see.

You fall over.
You are completely paralyzed.
You have suffocated.
Logged
*Tryrar fires Prudent Viper. Out of a cannon. Into the sun*

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Problems with interactions, help required.
« Reply #14 on: December 08, 2013, 03:56:31 pm »

Sorry to sound stupid, but where does it go then?

In the interaction, like I posted above.

Your issue is that it's targeting C instead of A.
Pages: [1] 2