Bay 12 Games Forum
Dwarf Fortress => DF Modding => Topic started by: UristVanHelsing on January 14, 2021, 03:42:01 pm
-
I wanted to create a custom "Witcher" caste that has the propel power present in some undead lieutenants. So, I did this is creature_standard:
[CASTE:WITCHER]
[MALE]
[NAME:witcher:witchers:witcher]
[SET_BP_GROUP:BY_TYPE:LOWERBODY][BP_ADD_TYPE:GELDABLE]
[BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUE_LAYERS]
[CAN_DO_INTERACTION:AARD]
[CDI:ADV_NAME:Propel away]
[CDI:TARGET:B:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:B:25]
[CDI:BP_REQUIRED:BY_TYPE:GRASP]
[CDI:USAGE_HINT:ATTACK]
[CDI:VERB:point:points:NA]
[CDI:MAX_TARGET_NUMBER:B:1]
[CDI:WAIT_PERIOD:50]
[POP_RATIO:0]
and this is my own file, interaction_new:
interaction_new
[OBJECT:INTERACTION]
[INTERACTION:AARD]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:LOCATION]
[IT_LOCATION:CONTEXT_LOCATION]
[I_TARGET:B:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_MANUAL_INPUT:target]
[I_EFFECT:PROPEL_UNIT]
[IE_PROPEL_FORCE:100000]
[IE_TARGET:A]
[IE_TARGET:B]
[IE_IMMEDIATE]
When I run the game, the error log spits out:
*** Error(s) finalizing the creature HUMAN
Interaction Token not recognized : AARD
Why is this? Everything looks normal as far as I can tell.
-
Does your "interaction_new" file have a .txt extension? If not, I'm pretty sure Dwarf Fortress won't see it.
-
Yes, it is interaction_new.txt
-
The "interaction examples" folder is just an examples folder, the game doesn't read from it. You need to put new interactions in the objects folder.
-
I completely forgot about this thread, but yes, my interactions are in interactions_new.txt in the objects folder, not the interaction examples folder.