weire Posted August 2, 2025 Share Posted August 2, 2025 My mod can add a tag to any creature by a weapon, but when reload game the tag will gone. How can I make it saved? Overwrite all creature's onSave is impratical. Or is there better way to mark a creature than tag? Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/ Share on other sites More sharing options...
Baguettes Posted August 2, 2025 Share Posted August 2, 2025 Probably via making a custom component that saves/loads whatever data you wish. 1 Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/#findComment-1830265 Share on other sites More sharing options...
weire Posted August 3, 2025 Author Share Posted August 3, 2025 thanks, I thought only prefab can save. since my mod work with talker I think I can try make talker save more data. Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/#findComment-1830310 Share on other sites More sharing options...
weire Posted August 3, 2025 Author Share Posted August 3, 2025 If I create a new component can I add the component after the prefab is init? like when I spell cast a creature, add a component to it. Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/#findComment-1830319 Share on other sites More sharing options...
weire Posted August 10, 2025 Author Share Posted August 10, 2025 turned out add new component cannot save, but overwrite talker component is good for me, thanks Baguettes. Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/#findComment-1831360 Share on other sites More sharing options...
LeafyFly Posted August 15, 2025 Share Posted August 15, 2025 Use debuffable/debuff component Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/#findComment-1831904 Share on other sites More sharing options...
Baguettes Posted August 21, 2025 Share Posted August 21, 2025 On 8/15/2025 at 11:36 AM, LeafyFly said: Use debuffable/debuff component You know, this flew over my head. Debuffs save between reloads, running their OnAttached fn... How did I not think of that?? Whew! Link to comment https://forums.kleientertainment.com/forums/topic/167384-how-to-save-a-tag-that-can-added-to-any-creature/#findComment-1832487 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now