AlexeiStukov Posted June 12, 2015 Share Posted June 12, 2015 hi As the title says, i am asking where do i find the file that allows me to add new medical recipes? For example, i am wanting to add a "Homemade Splint" that consists of gauze wrap and planks. This would be better than the "Makeshift Splint" consisting of twigs and sheets. However, i cannot find the location of the file that allows me to create the new recipe for the Homemade Splint to allow me to apply it the character. I know how to add the specific medical item (you just go to "Items" folder and make it there). I just don't know the location for adding the specific recipe that allows you to apply the medical item to your character. If someone could inform me of where i could find the file that allows you to add new medical recipes, i would greatly appreciate it ! Thank you for taking the time to read my thread and God Bless! cya, Alexei Link to comment Share on other sites More sharing options...
AlexeiStukov Posted June 13, 2015 Author Share Posted June 13, 2015 To make it a bit easier... I am trying to find the location of the medical code. Link to comment Share on other sites More sharing options...
fluffe9911 Posted June 15, 2015 Share Posted June 15, 2015 Here is all that I found relating to medical stuff CanBandage = true Bandage Power = 2 AlwaysWelcomeGift = true Alcoholic = TRUEFatigueChange = -2 splinting and wound needling could be hardcoded atm Link to comment Share on other sites More sharing options...
billwa Posted June 16, 2015 Share Posted June 16, 2015 hi Thank you! But we do need some more help! We cannot figure out how to make another painkiller type item, because there is no value in the item itself! Please help us! @fluffe9911 BIG THANKS M8! cya, Billwa Link to comment Share on other sites More sharing options...
AlexeiStukov Posted June 16, 2015 Author Share Posted June 16, 2015 Here is all that I found relating to medical stuff CanBandage = true Bandage Power = 2 AlwaysWelcomeGift = true Alcoholic = TRUEFatigueChange = -2 splinting and wound needling could be hardcoded atm hi Is there anyway to add painkiller power? We don't know how effective the current painkiller is, same thing with the anti-depression and beta blockers. It does not state their power. Is there anyway to find the "power" of them? Just like it says for bandages. Our hierarchy of painkiller injections is as follows (weakest to strongest) TraumeelDemerolMorphine Thank you for your help right now. If there is anyway possible you could help us with our new problem that would be great! Thank you and God Bless! cya Link to comment Share on other sites More sharing options...
Fuji Posted June 16, 2015 Share Posted June 16, 2015 Medicine is hardcoded into the game, there's currently no reliable way to add new ones. Link to comment Share on other sites More sharing options...
AlexeiStukov Posted June 16, 2015 Author Share Posted June 16, 2015 Medicine is hardcoded into the game, there's currently no reliable way to add new ones. hi Fuck cya Link to comment Share on other sites More sharing options...
Ryfoxx Posted July 23, 2015 Share Posted July 23, 2015 This is a slightly old post, but there's still hope. (I know you're no longer working on your mod, but still.) You can try using Lua functions to get and set the moodle level. However, I don't know if these functions work in Lua, or just Java. You could also have stronger painkillers cause fatigue or exhaustion, too, to balance it. Link to comment Share on other sites More sharing options...
Ryfoxx Posted July 23, 2015 Share Posted July 23, 2015 Okay, I found it:getPlayer():getStats():setPain(0);Or, to lower pain one level:local pstats = getPlayer():getStats()pstats:setPain(math.max(pstats:getPain()-1,0)); -- Make sure that the pain is at minimum 0.Ethanwdp helped me with this, so make sure to thank him. Only problem is, you still can't make new splints. Link to comment 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