PDA

View Full Version : A question about the equipment section of an NPC



spoofer
April 26th, 2021, 14:12
When I look at the Guard Warrior, I see in tiny letters "Strong" below the to hit value for the double-axe. When I create a new NPC and add a weapon, I wee "Accurate" in place of Strong, since that i the default. How do I set the attribute used in an attack to something other than Accurate?

When I export the NPC and look at the xml code, I do not see a corresponding line for this. Is there some way to code the stat?


<equipment>
<double_axe>
<damage type="string">11</damage>
<name type="string">Double-axe (deep impact), ignoring Armor</name>
<shortcut type="windowreference">
<class>reference_equipment</class>
<recordname />
</shortcut>
<type type="string">weapon_heavy</type>
<worn_type type="string">two_hand</worn_type>
</double_axe>

Valyar
April 26th, 2021, 14:27
You need to add Iron Fist ability to the NPC in order to convert the default Accurate to Strong. Same with other abilities that update which is the stat for attack.

spoofer
April 26th, 2021, 15:17
You need to add Iron Fist ability to the NPC in order to convert the default Accurate to Strong. Same with other abilities that update which is the stat for attack.

Thank you for the response. I tried that but I did not see any visual change. I will experiment some more.

Valyar
April 26th, 2021, 15:40
Did you cycle the weapon type? On my end it looks like that

spoofer
April 27th, 2021, 11:53
Thanks! That was it. Now I have everything more or less figured out... at least enough to continue coding.

spoofer
April 30th, 2021, 14:07
I am still completely new to this system, so I am learning the rules as I go. I start playing as a player this week!

I have almost completed a basic working monster parser in Python. I am having lots of fun doing this, it gives me something to do in lockdown, and this forces me to really figure out the rules.