Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4] 5 6 ... 14

Author Topic: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD  (Read 61910 times)

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #45 on: September 12, 2012, 02:04:01 pm »

I suppose I could make it target friendlies by bouncing the reaction off of enemies.

Dwarf 1 has the spell give haste
Dwarf 1 uses spell give haste on goblin 1
Goblin 1 then castes haste on Dwarf 2
This is pretty much what you need to do for friendly targeting combat-only spells. For non-combat spells it's sometimes easier to simply make a  category like "haste spell" and then give that category to all of the creatures that you want to target with the spell.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Roses

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #46 on: September 12, 2012, 02:24:04 pm »

I suppose I could make it target friendlies by bouncing the reaction off of enemies.

Dwarf 1 has the spell give haste
Dwarf 1 uses spell give haste on goblin 1
Goblin 1 then castes haste on Dwarf 2
This is pretty much what you need to do for friendly targeting combat-only spells. For non-combat spells it's sometimes easier to simply make a  category like "haste spell" and then give that category to all of the creatures that you want to target with the spell.

Yeah. Right now I am only focused on friendly combat-only spells, so I suppose it's not such a hard work-around.
Logged

melkor

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #47 on: September 21, 2012, 01:45:26 pm »

i can't seem to get UNDIRECTED_DUST to work, could somebody give me the name of a known creature that uses UNDIRECTED_DUST]?
Logged
Quote from: Robocorn
what do postdwarvenists do with goblins?

Quote from: Andreus
We slaughter them by the thousands.
But... you know, we do it ironically.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #48 on: September 21, 2012, 01:48:29 pm »

Just post the creature that you're making here.

(There isn't one, btw).

melkor

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #49 on: September 21, 2012, 01:53:09 pm »

its not a creature its a syndrome that gives a attack that should kill a bunch of creatures around it and the creature using it.

Spoiler (click to show/hide)
Logged
Quote from: Robocorn
what do postdwarvenists do with goblins?

Quote from: Andreus
We slaughter them by the thousands.
But... you know, we do it ironically.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #50 on: September 21, 2012, 03:51:28 pm »

What you want is CDI:MATERIAL:(material token):UNDIRECTED_DUST, not CDI:UNDIRECTED_DUST.

Here's a fixed version:

Code: [Select]
[INORGANIC:DEADMETAL]
   [USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
   [STATE_NAME_ADJ:ALL_SOLID:iron]
   [STATE_NAME_ADJ:LIQUID:molten iron]
   [STATE_NAME_ADJ:GAS:boiling iron]
   [DISPLAY_COLOR:0:7:1]
   [BUILD_COLOR:0:7:1]
   [MATERIAL_VALUE:10]
   [SPEC_HEAT:450]
   [MELTING_POINT:768]
   [ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
   [ITEMS_HARD]
   [ITEMS_METAL]
   [ITEMS_BARRED]
   [ITEMS_SCALED]
   [SOLID_DENSITY:7850]
   [LIQUID_DENSITY:8880]
   [MOLAR_MASS:55845]
   [IMPACT_YIELD:0] Was 1080000, but just using 3.5x tensile multiples for everything until better numbers are available, which might not be likely
   [IMPACT_FRACTURE:1085000]
   [IMPACT_STRAIN_AT_YIELD:3100009]
   [COMPRESSIVE_YIELD:0]
   [COMPRESSIVE_FRACTURE:5770]
   [COMPRESSIVE_STRAIN_AT_YIELD:31900000] bulk modulus 170 GPa
   [TENSILE_YIELD:0]
   [TENSILE_FRACTURE:310000]
   [TENSILE_STRAIN_AT_YIELD:700003] young's modulus 211 GPa
   [TORSION_YIELD:0]
   [TORSION_FRACTURE:310000]
   [TORSION_STRAIN_AT_YIELD:1800009]
   [SHEAR_YIELD:0]
   [SHEAR_FRACTURE:310000]
   [SHEAR_STRAIN_AT_YIELD:1000089] shear modulus 82 GPa
   [BENDING_YIELD:0]
   [BENDING_FRACTURE:310000]
   [BENDING_STRAIN_AT_YIELD:700003]
   [MAX_EDGE:10000]
   [STATE_COLOR:ALL_SOLID:GRAY]
   [MAT_FIXED_TEMP:9001]
   [BOILING_POINT:9000]
   [SYNDROME]
      [SYN_NAME:fever]
      [SYN_AFFECTED_CREATURE:GENERAL_POISON]
      [SYN_INHALED]
      [CE_CAN_DO_INTERACTION:PROB:100:START:5]
         [CDI:INTERACTION:EXPLODE]
         [CDI:ADV_NAME:explode]
         [CDI:USAGE_HINT:ATTACK]
         [CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
         [CDI:MATERIAL:INORGANIC:MICROCLINE:UNDIRECTED_DUST]
         [CDI:TARGET:C:LINE_OF_SIGHT]
         [CDI:TARGET_RANGE:C:15]
         [CDI:MAX_TARGET_NUMBER:C:1]
         [CDI:WAIT_PERIOD:50]

This will make it shoot "boiling magma" (IIRC) around. Either that or microcline dust. Whichever.

EDIT: You may want to remove being able to make weapons out of it.
« Last Edit: September 21, 2012, 03:53:40 pm by Putnam »
Logged

melkor

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #51 on: September 22, 2012, 12:27:10 am »

This will make it shoot "boiling magma" (IIRC) around. Either that or microcline dust. Whichever.

it indeed makes it shoot 'boiling magma' thanks a lot, i wonder if i could change it so the creatures are set on fire.
also if i change the density of the material will it become more deadly?
Logged
Quote from: Robocorn
what do postdwarvenists do with goblins?

Quote from: Andreus
We slaughter them by the thousands.
But... you know, we do it ironically.

melkor

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #52 on: September 26, 2012, 11:35:09 am »

i am trying to get the dwarfs to use this on them self the entire time and not only when they attack.
how would one do that?


Spoiler (click to show/hide)
Logged
Quote from: Robocorn
what do postdwarvenists do with goblins?

Quote from: Andreus
We slaughter them by the thousands.
But... you know, we do it ironically.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #53 on: September 26, 2012, 12:07:47 pm »

> i am trying to get the dwarfs to use this on them self the entire time and not only when they attack.

Remove or change the [CDI:USAGE_HINT:ATTACK]

melkor

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #54 on: September 26, 2012, 01:04:50 pm »

thx, i gave it all the usage hints and now it keeps doing it.

do you know a way to make it more deadly, without adding more syndromes?
i want them to die of the attack because i want to hurt the other dwarfs, but the infected one just doesn't want to die.
Logged
Quote from: Robocorn
what do postdwarvenists do with goblins?

Quote from: Andreus
We slaughter them by the thousands.
But... you know, we do it ironically.

Droid15243Z

  • Bay Watcher
  • Where am I?
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #55 on: October 04, 2012, 04:10:05 pm »

Is it possible to make mounts that are immobile untill mounted by using a harmless attack with a syndrome to remove the token and vice versa.
« Last Edit: October 04, 2012, 10:13:09 pm by Droid15243Z »
Logged
I intend to make many mods one day! If only I had more time to learn and my siblings stopped deleting my work whenever I refuse to be blackmailed.

Temujin

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #56 on: April 10, 2020, 12:59:58 pm »

Strange question:

Can an event like a birth in particular be use to trigger a syndrome?  I think that the birth process for dwarves is one of the least realistic events in the game (having gone through 2 deliveries on the part of my wife in the last 3 years), and I would like to create a labor syndrome that is triggered by the birth event. 

The issue is the trigger - how does one connect that to a syndrome or other event?

thanks.

Logged

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #57 on: April 10, 2020, 01:19:40 pm »

You'd have to use dfhack; theres a egg layer timer but no regular birth timer and nothing else that would work.
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

chipathingy

  • Bay Watcher
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #58 on: April 13, 2020, 11:46:17 pm »

Is there a way to give a syndrome to a summoned creature that wears off after a set amount of time? I posted in the questions thread a few days ago but didn't get  a reply. Basically I'm trying to use summoning to get around the restriction on not being able to transform an already-transformed creature.
Here is what I have now:
Spoiler (click to show/hide)
Spoiler (click to show/hide)
The idea is that in combat, the creature has a chance to transform into a pod (which then turns into a 'hatched' pod that goes poof) then summon the next stage of the cycle. There are 5 copies of this set of interactions - there is a 1A/B and 3A/B on either side that have different creatures and timings.
The problem is (in the testing arena) that the summoned creature immediately transforms into the next stage e.g. if I summon an adult varkid it immediately becomes a badass pod. I have tried to put a gap in using the JUST_HATCHED syndrome but it isn't working.
The other problem is that the probabilities do not work either. In this example there should only be a 50% chance to transform but it will do it every time. Any thoughts on how to fix this?
Logged
Author of Fantastic Fantasy Fortress (http://www.bay12forums.com/smf/index.php?topic=180748.0)

NordicNooob

  • Bay Watcher
  • *Not actually Nordic
    • View Profile
Re: [MODDING] INTERACTION & SYNDROME QUESTIONS THREAD
« Reply #59 on: April 14, 2020, 10:58:28 pm »

How do you get interactions to work through walls? I'm trying to give goblins an interaction that lets them inflict a stress-inducing syndrome on exclusively dwarves, preferably as a hostile action, but it doesn't matter much since goblin visitors are quite rare and the syndrome should only be dangerous in large amounts.

Currently it is fully functional except for the fact that it does not function through walls, which is an obvious problem if I want it as an anti-seal-yourself-off-with-walls measure.

Spoiler: interaction changes (click to show/hide)


 I've tried giving goblins extravision (though I don't think that should change anything), and as an extra challenge I randomly threw nopain and trances in there. Neither file has any other changes than the ones in the spoiler text, not that it should make anything different.

If I can get it to work, I'll probably also give it to undead, but that should be trivial. In addition, I may add the IT_CANNOT_TARGET_IF_ALREADY_AFFECTED and perhaps ERRATIC_BEHAVIOR tokens. However, right now, I just want to know how to get the blasted thing to work through walls.

One more question, though: does the END time on my stress-inducing syndrome have any effect, since the giving of stress is a one-off thing? Can I use it as a timer for how often a dwarf can be targeted when used with IT_CANNOT_TARGET_IF_ALREADY_AFFECTED, so that an entire siege doesn't use their first demoralize on a singular dwarf?

EDIT: I was able to get it to work by giving the USAGE_HINT of GREETING, though I'm not sure why that works.
« Last Edit: April 16, 2020, 10:42:22 am by NordicNooob »
Logged
Pages: 1 2 3 [4] 5 6 ... 14