RJMayhemMods Posted April 14, 2023 Share Posted April 14, 2023 HelloI'm a bit stuck. I can't figure out how to place flora that my settlers can farm & collect. I placed the flora and linked it to my workshop using the WorkshopItemKeyword ref. It shows up as a option to assign it to a settler and I get the message this resource is now assigned. Then nothing my food count don't change & the settler ignore the plant. What am I doing wrong? Link to comment Share on other sites More sharing options...
SKKmods Posted April 14, 2023 Share Posted April 14, 2023 If the flora is not one of the base game recognised plants you will need to: (a) Ensure it has a Food AV value (b) Hack WorkshopParentScript.WorkshopFoodType[] array to recognise it for production with its own foodobject LL and unique WorkshopRatingFoodType AV Link to comment Share on other sites More sharing options...
RJMayhemMods Posted April 14, 2023 Author Share Posted April 14, 2023 (edited) If the flora is not one of the base game recognised plants you will need to: (a) Ensure it has a Food AV value (b) Hack WorkshopParentScript.WorkshopFoodType[] array to recognise it for production with its own foodobject LL and unique WorkshopRatingFoodType AVI'm not making new custom flora. I'm using the base game flora (Carrot, Corn, Gourd, Melon, Mutfruit, Razorgrain, Tato). I duplicated the entry renamed it adding Sanctuary to the ID. Placed it into the world added the WorkshopItemKeyword ref to the Sanctuary Workshop. I've tried using the renamed and base game flora and both don't seem to work. I can assign them but then it don't actually work. The food rating don't increase and the settler don't farm it (animations) just ignores it. Edited April 14, 2023 by RJMayhem86 Link to comment Share on other sites More sharing options...
SKKmods Posted April 14, 2023 Share Posted April 14, 2023 Probably because you need to call script function BuildObjectPUBLIC, this is how I dynamically place and register productive crops with a workshop: ObjectReference ThisFlora = ThisMarker.PlaceAtMe(pFloraMutfruit01, 1,abForcePersist = false, abInitiallyDisabled = false, abDeleteWhenAble = false) ThisFlora.SetLinkedRef(ThisWorkshop, pWorkshopItemKeyword) (pWorkshopParent as WorkshopParentScript).BuildObjectPUBLIC(ThisFlora, ThisWorkshop) Link to comment Share on other sites More sharing options...
RJMayhemMods Posted April 14, 2023 Author Share Posted April 14, 2023 (edited) Probably because you need to call script function BuildObjectPUBLIC, this is how I dynamically place and register productive crops with a workshop: ObjectReference ThisFlora = ThisMarker.PlaceAtMe(pFloraMutfruit01, 1,abForcePersist = false, abInitiallyDisabled = false, abDeleteWhenAble = false) ThisFlora.SetLinkedRef(ThisWorkshop, pWorkshopItemKeyword) (pWorkshopParent as WorkshopParentScript).BuildObjectPUBLIC(ThisFlora, ThisWorkshop) I'm not that advanced in modding. I have no clue what or how to use that. What I find weird is I placed some tarberry plants and linked them and they work like normal. Edited April 14, 2023 by RJMayhem86 Link to comment Share on other sites More sharing options...
Recommended Posts