Creature covering itself in poisonous goo??
So i plan on creating a creature that can cover itself in a syndrome enducing material
it should be able to spit the stuff too.
In my mind i need the syndrome material, which i don't really know how to define.
The creature using the stuff should be immune to the stuff - don't know how to do that
The creature could automatically cover itself in the material via sweating?
Maybe there is a better way, any ideas?
For the spit attack i should probably look at the dragons fire spitting to get an idea on how to do it,
normal spitting interaction could spit the poison too, but i guess this will not be used in combat.
Thank you for your help already!!
So the first thing you want to do is define the material that will inflict the syndrome. If you look to the vanilla creatures - in this case, the Giant Cave Spider - you'll see that it utilises the
CREATURE_EXTRACT_TEMPLATE for its poison, so let's use that as basis.
[USE_MATERIAL_TEMPLATE:POISON:CREATURE_EXTRACT_TEMPLATE]
You'll want to actually check the example in the GCS's
raws here to see what names you'll want to change. This is also where you'll want to define the syndrome for your creature. See
the wiki entry on syndromes for the list of effects and tags. You'll most likely want to utilise
SYN_CONTACT (to make the syndrome take effect on contact with splatters of the material), and
SYN_IMMUNE_CREATURE (to make the creature itself immune to the syndrome).
For the automatically covering itself in the material, you'll want to use the
SECRETION token. If you wanted to make it constantly emit the substance from its skin (and you've used that previous code to define the material, and have defined the creature's skin), you'd use.
[SECRETION:LOCAL_CREATURE_MAT:POISON:LIQUID:BY_CATEGORY:ALL:SKIN:CONTINUOUS]
For the spitting poison... well the standard spit interaction is a good place to start (note: it's not worth looking at dragons, since they don't spit). The spit interaction already fires a liquid glob of material, which is exactly what you'll want for spreading a contact syndrome, so you don't need to modify that in any way. The two basic things that you'll want to change are the material of the spit, and the usage hint (the thing that tells the creature how/when to use the interaction). For the material, you'll want to locate the line
[CDI:MATERIAL:LOCAL_CREATURE_MAT:SPIT:LIQUID_GLOB], and simply replace
SPIT, with
POISON (the name of the material you defined at the beginning). For the usage hints, you may want to remove the default ones that are already there, and consult the
interaction usage tokens to see what
USAGE_HINT might be appropriate for this spit attack. There happens to be a usage for attacking, which tells the creature to use this interaction to attack another creature, which seems like exactly what you want. So, in your creature's spit interaction usage, you just need to add
[CDI:USAGE_HINT:ATTACK] to get your creature using the spit as an attack.
This covers just the basics of what is involved, you'll probably want to look further into each of the things to fully customise them to your liking. I've also not actually tested this stuff for typos, but maybe that's just my way of introducing you to checking
errorlog.txt for any errors that might appear when trying to load your modified creature