• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Schematics!

ZzzSmileYzzZ

New member
I would like to change the clawhammer so you have to learn it in order to make them like the crossbow is, but I don't know where to look in the files to make the changes. Can anyone help me out on which file need to be edited to make it work?

Cheers,

 
Items.xml.

You need to make a schematic item for it. So, as an example...

Code:
<item id="971" name="clawHammerSchematic"> <!-- NO LONGER USED -->
<property name="Extends" value="schematicMaster"/>
<property name="CustomIcon" value="schematicMaster"/>
<property class="Action1">
	<property name="Recipes_to_learn" value="clawHammer"/>
	<!-- <property name="Skills_to_gain" value="craftSkillTools"/> -->
</property>
</item>
It's actually already in the code but commented out, and makes you learn the schematic instead of the item. :)

EDIT: Oh! and you need to edit loot.xml so it can drop, and traders.xml if you want people to be able to buy it.

 
Last edited by a moderator:
In my items.xml it is not commented out, the only commented out line is ( <!-- NO LONGER USED --> ) as you see in your reply. And still can make the hammer at level 1, assuming I found the forged iron that is.

Cheers,

 
N/M Got it to work.

had to change the code from:

Code:
<item id="971" name="clawHammerSchematic"> <!-- NO LONGER USED -->
<property name="Extends" value="schematicMaster"/>
<property name="CustomIcon" value="schematicMaster"/>
<property class="Action1">
<property name="Recipes_to_learn" value="clawHammerSchematic"/>
<!-- <property name="Skills_to_gain" value="craftSkillTools"/> -->
</property>
</item>
To:

Code:
<item id="971" name="clawHammerSchematic"> <!-- NO LONGER USED -->
<property name="Extends" value="schematicMaster"/>
<property name="CustomIcon" value="schematicMaster"/>
<property class="Action1">
<property name="Recipes_to_learn" value="clawHammer"/>
<!-- <property name="Skills_to_gain" value="craftSkillTools"/> -->
</property>
</item>
And it's work now. Now I need to put it into the loot group, any suggestion?

Cheers,

 
I'd just put it under the commonbooks loot group. Then it'll be found anywhere you can find books.

Unless you want it to be hard to find, then put it under the rarebooks loot group.

 
Back
Top