Zeyn Posted March 10, 2015 Share Posted March 10, 2015 Hello everybody, I would like to make a really simple mod for DT/ROG (and i will probably make it for DST too) that just divide the maxhealth of the character by 3, whatever the character's choice. The mod will be call Frail ! I have tried to use the Health:SetMaxHealth function located on data/scripts/components/health.lua file in my modmain.lua file but i have failed. I would really appreciate a little peace of advice/help. Link to comment Share on other sites More sharing options...
Kzisor Posted March 10, 2015 Share Posted March 10, 2015 @Zeyn, it should work exactly as followed. AddPlayerPostInit(function(inst) inst.components.health:SetMaxHealth(inst.components.health.maxhealth / 3) return inst end) Link to comment Share on other sites More sharing options...
Zeyn Posted March 10, 2015 Author Share Posted March 10, 2015 It works !! Thanks a lot Kzisor ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.