roomnomad.blogg.se

Life is feudal wiki shack
Life is feudal wiki shack





life is feudal wiki shack

In your localization.csv at tootip shortCode line insert : "Hangar is the name, don't forgot to translate it for other languages.

life is feudal wiki shack

Write at the end of script file something like this:įv.:regBuilding(Hangar, 'livingHouses.hangar', '938362548/hangarIcon', loc( 'tooltip'), 1.5)Īgain, we used here icon from our imageset and record from localization.csv as tooltip text. To be able to build house you need to add corresponding button to game menu. new logic end function Hangar:onPrefabChange()ĭon't forget to load imageset by filename: You can continue to alter Hangar building by overriding some of its function: All other config values will be inherited from House_small1. For instance, we set visibleName and description to records from localization.csv by loc function set icon to image from our imageset changed price and path to prefab. Note, that we defined only changed values. Hangar = Class( "Hangar", fv.core.House_small1)Īt this point, hangar is exact copy of House_small1. Start by creation new class by inherit one of buildings:

LIFE IS FEUDAL WIKI SHACK MOD

You can download the whole mod example at the end of this section. It would be simple hangar with own icon and button in game menu. You need to write "fv.core" before ".Shack" because it is a class of core script.Īdd a new button in GameMenu Houses. Run the game, enable your mod and test if works! Explanation Īdd a new class MyHouse with class-name "MyHouse" inherit of Shack class. MyHouse = Class("MyHouse", fv.core.Shack)įv.:regBuilding(MyHouse, 'livingHouses.MyHouse', 'GameLook1/iconHouseShack', 'MyHouse 1) In your mod folder create a new file "a".Create a new Steam Workshop Item (see this guide and select Modification type when it will be requested).Add a simple Shack like in the game but as own.







Life is feudal wiki shack