Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

WildForm framework

This mod provides a simple framework that allows pawns to switch between their colonist and animal forms through a set of abilities. You can easily add your own custom transformations to animals from any mod.


How to Create a Custom Wild Form

Creating a new wild form is straightforward. The easiest method is to copy an existing ability and modify it.

  • Locate the Examples: You can find example abilities in the mod's folder, under

    Defs/AbilityDefs/

    .
  • Create Your Ability File: In your own mod's folder, create a new XML file under its

    Defs/AbilityDefs/

    directory.
  • Copy and Paste: Copy the full XML code from one of the examples (e.g., the

    RST_Thrumbo

    ability) and paste it into your new file.
  • Edit the XML Tags: Now, modify the following tags to define your new ability.
    [list]
  • defName: This must be a unique ID for your ability. For example, change

    RST_Thrumbo

    to

    YourModPrefix_AlphaThrumbo

    .
  • label: This is the in-game name of the ability, such as

    Wild Form: AlphaThrumbo

    .
  • description: Write a clear description that will appear in the ability's tooltip.
  • iconPath: Set the file path for the ability's icon texture.
  • transtarget: This is the most important tag. Change its value to the

    defName

    of the animal you want the pawn to transform into. For example,

    AlphaThrumbo

    .
  • cooldownTicksRange: Adjust the ability's cooldown period. The value is in ticks (Note: 60 ticks = 1 second).

[/list]

Once you save the file, your new custom wild form ability will be available in the game. You can add your desire ability inner the abilities list or just use character editor to add the ability.

Рейтинг

Войдите, чтобы голосовать.
🏅 Нет оценок

Базовые теги:

Зависимости мода

Логотип мода

Harmony

Загрузить 1 MB