Notes on trainableDefs

Started by ItchyFlea, August 21, 2015, 08:21:06 PM

Previous topic - Next topic

ItchyFlea

Just some notes regarding trainable defs and how they can be modded and given to specific animals. This post might not be well organised.

In the races def, under the <race> tag, there are two new tags that you can use. <trainableTags> and <untrainableTags>.
They are list tags, so each new tag would be specified within a <li> </li>.
The tags are defined in \TrainableDefs\Trainables.xml

Usually you won't have to use either of those tags if you're happy with the trainables the way they are. But if you want a trainable, such as hauling, to only take 4 steps instead of 8 to train, you'll have to use them.
You'd also have to make a new thinktree for the animal so that it uses your new hauling trainable.
In the thinktree, the new trainable is defined with it's defName in this tag: <trainable>Haul</trainable>
All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created

isistoy

Haven't taken the time to actually look at changes for them.
Interesting...
<Stay on the scene like a State machine>

Tynan

This info would go great on the wiki! For permanence.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

isistoy

Who feels for a hunting addition to their training program ;) ?
<Stay on the scene like a State machine>