Total War: WARHAMMER II

Total War: WARHAMMER II

Instant Mount
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
DrunkFlamingo  [udvikler] 2. juli 2020 kl. 10:08
How to add a modded mount
This mod is powered by a lua script. The Database setup of the mount is relevant to make the script work, and should be copied off the examples found in this mods data setup.

To add your mounts to this mod, you must call the following function:
add_mount_unlock_for_character(mount_key: string, subtype_key: string , rank_to_unlock: int)

This function may be called at any time after the AutoMounts.lua file has been required by the game. The args are: the mount's ancillary key, the agent subtype key who may receive this mount, and the level at which the mount should be unlocked for usage.

An example call is as follows: add_mount_unlock_for_character("wh2_main_anc_mount_hef_tyrion_malhandhir", "wh2_main_hef_tyrion", 2)

This function is global and should be available from any mod script, provided that this mod's script has loaded.
Sidst redigeret af DrunkFlamingo; 2. juli 2020 kl. 10:10
< >
Viser 1-2 af 2 kommentarer
Venris  [udvikler] 2. juli 2020 kl. 11:20 
Rememebr that you need to have that mount skill node set to already unlocked in character_skill_nodes.
The Tactician 29. maj 2022 kl. 3:45 
Can modded characters be added to the lua script too?
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50