Dwarf Fortress > DF Modding

Vampire with venomous bite?

(1/1)

TechnoScrabble:
I've been trying to muck about with adding different varieties of vampire to my DF world, but I'm struggling a bit. I'm mostly copying and pasting existing bits of code, but it doesn't seem to be working out, so I've come here to ask those better skilled how to do it.

I want to make a vampire syndrome that gives the vampires a venomous bite like that of the Black Mamba. Just copying and pasting the relevant venom data doesn't seem to be working out. That, and I'm not sure I'm adding the new vampire syndromes to the right file. What raw file do I add to to make new vampires, and how do I give them a snake's venom on their bite attacks?

Additionally, for testing this out in adventure or arena mode, is there a way to make an adventure mode action to give myself the curse, or an item that could do it? I've heard of people adding an interaction that lets them spawn necromancy slabs.

draconis:
ive never done work on vampires so i can not tell you but as for venom; venom should be its own syndrome attack; there might be a conflict if the syndromes are using the same body part since i have not added more than one syndrome attack though it might or may not actually work because vampires are not just a syndrome they are essentially their own creature.

to be honest it might be easier an better for you to create a new race & entity for the different vampire types an have the vanilla vampires being savage/wild vampires an than add the desired syndrome to them. (side note: while adding entities the easiest thing to do is copy an past the dwarf one an than change the creature reference; from there you can add an change things to your hearts content...an also while making a new sapient creature the easiest thing would be to copy an paste one of the sapient already there in the creature standard txt. preferably you should keep the new sapient in its own txt for ease of editing as needed)

TechnoScrabble:
I think I've put together the code I need for the vampire itself, but I need a way to inflict it on myself for debugging and testing purposes.

Spoiler (click to show/hide)inorganic_necro
[OBJECT:INORGANIC]

[INORGANIC:NECRO]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[MATERIAL_VALUE:1]
[SPEC_HEAT:100]
[IGNITE_POINT:NONE]
[MELTING_POINT:9000]
[BOILING_POINT:9001]
[HEATDAM_POINT:NONE]
[COLDDAM_POINT:NONE]
[MOLAR_MASS:1]
[SYNDROME]
   [SYN_INHALED]
[SYN_CLASS:VAMPCURSE]
[CE_ADD_TAG:BLOODSUCKER:NO_AGING:NOT_LIVING:NOEXERT:NOPAIN:NOBREATHE:NOSTUN:NONAUSEA:NO_DIZZINESS:NO_FEVERS:PARALYZEIMMUNE:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_RUST:START:0]
      [CE_PHYS_ATT_CHANGE:STRENGTH:375:0:AGILITY:500:0:TOUGHNESS:300:0:START:0]
      [CE_MATERIAL_FORCE_MULTIPLIER:MAT_MULT:NONE:NONE:1:2]
      [CE_BODY_MAT_INTERACTION:MAT_TOKEN:RESERVED_BLOOD:START:0]
         [CE:INTERACTION:OPHIDIAN_CURSE]
         [CE:SYNDROME_TAG:SYN_INGESTED]
         [CE:SYNDROME_TAG:SYN_INJECTED]
      [CE_DISPLAY_TILE:TILE:165:4:0:0:START:0:CAN_BE_HIDDEN]
      [CE_DISPLAY_NAME:NAME:ophidian:ophidians:ophidian:START:0:CAN_BE_HIDDEN]
      [CE_BP_APPEARANCE_MODIFIER:START:0:BP:BY_CATEGORY:TOOTH:APPEARANCE_MODIFIER:LENGTH:150]
         [CE:COUNTER_TRIGGER:DRINKING_BLOOD:1:NONE:REQUIRED]
      [CE_SENSE_CREATURE_CLASS:START:0:CLASS:GENERAL_POISON:15:4:0:1]
      [CE_CAN_DO_INTERACTION:START:0]
            [CDI:ADV_NAME:Animate corpse]
            [CDI:INTERACTION:RAISE]
            [CDI:TARGET:A:LINE_OF_SIGHT]
            [CDI:TARGET_RANGE:A:10]
            [CDI:VERB:gesture:gestures:NA]
            [CDI:TARGET_VERB:shudder and begin to move:shudders and begins to move]
            [CDI:WAIT_PERIOD:10]
         [USE_MATERIAL_TEMPLATE:VENOM:CREATURE_EXTRACT_TEMPLATE]
      [STATE_NAME:ALL_SOLID:frozen ophidian venom]
      [STATE_ADJ:ALL_SOLID:frozen ophidian venom]
      [STATE_NAME:LIQUID:ophidian venom]
      [STATE_ADJ:LIQUID:ophidian venom]
      [STATE_NAME:GAS:boiling ophidian venom]
      [STATE_ADJ:GAS:boiling ophidian venom]
      [PREFIX:NONE]
      [ENTERS_BLOOD]
      [SYNDROME]
         [SYN_NAME:ophidian bite]
         [SYN_AFFECTED_CLASS:GENERAL_POISON]
         [SYN_INJECTED]
         [CE_PARALYSIS:SEV:100:PROB:100:RESISTABLE:SIZE_DILUTES:START:50:PEAK:500:END:1500]
         [CE_DIZZINESS:SEV:50:PROB:100:RESISTABLE:SIZE_DILUTES:START:30:PEAK:500:END:1500]
         [CE_DROWSINESS:SEV:50:PROB:100:RESISTABLE:SIZE_DILUTES:START:30:PEAK:500:END:1500]
         [CE_UNCONSCIOUSNESS:SEV:50:PROB:100:RESISTABLE:SIZE_DILUTES:START:50:PEAK:500:END:1500]
         [CE_FEVER:SEV:50:PROB:100:RESISTABLE:SIZE_DILUTES:START:50:PEAK:500:END:1500]
         [CE_PAIN:SEV:75:PROB:100:RESISTABLE:SIZE_DILUTES:LOCALIZED:VASCULAR_ONLY:START:10:PEAK:500:END:1500]
      [ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
      [ATTACK_SKILL:BITE]
      [ATTACK_VERB:bite:bites]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PENETRATION_PERC:100]
      [ATTACK_PRIORITY:MAIN]
      [ATTACK_FLAG_EDGE]
      [ATTACK_PREPARE_AND_RECOVER:3:3]
      [ATTACK_FLAG_CANLATCH]
      [SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:VENOM:LIQUID:100:100]

[INTERACTION:RAISE]
   [I_TARGET:A:CORPSE]
      [IT_LOCATION:CONTEXT_ITEM]
      [IT_AFFECTED_CLASS:GENERAL_POISON]
      [IT_REQUIRES:FIT_FOR_ANIMATION]
      [IT_FORBIDDEN:NOT_LIVING]
      [IT_MANUAL_INPUT:corpses]
   [I_EFFECT:ANIMATE]
      [IE_TARGET:A]
      [IE_IMMEDIATE]
      [IE_ARENA_NAME:Animated corpse]
      [SYNDROME]
         [CE_FLASH_TILE:TILE:165:3:0:0:FREQUENCY:2000:1000:START:0]
         [CE_PHYS_ATT_CHANGE:STRENGTH:300:1000:TOUGHNESS:300:1000:START:0]
         [CE_SPEED_CHANGE:SPEED_PERC:60:START:0]
[CE_ADD_TAG:NO_AGING:NOT_LIVING:EXTRAVISION:NOEXERT:NOPAIN:NOBREATHE:NOSTUN:NONAUSEA:NO_DIZZINESS:NO_FEVERS:NOEMOTION:PARALYZEIMMUNE:NOFEAR:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_GAIN:NO_PHYS_ATT_RUST:NOTHOUGHT:NO_THOUGHT_CENTER_FOR_MOVEMENT:NO_CONNECTIONS_FOR_MOVEMENT:START:0]
         [CE_REMOVE_TAG:HAS_BLOOD:TRANCES:LIKES_FIGHTING:MISCHIEVOUS:START:0]
This is the object I'm spawning to try and give myself the 'ophidian vampirism' for testing, but it just gives me a spray of venom. Is there a way to just inflict it on myself via dfhack, or another way I should be doing this?

Navigation

[0] Message Index

Go to full version