Page 1 of 1
no more food!
Posted: Sun Oct 26, 2014 8:53 am
by nugar
Is it possible to mod the food requirements out of the game, it's a micro management part of the game that I dislike and would like for it to be modded out of the game if possible.
Re: no more food!
Posted: Sun Oct 26, 2014 10:53 am
by DrKojak
It's possible i think, like setting the max health of a character i think there might be such an option to set the max hunger possibly,, it could also be possible to add a repeating timer that just refills the hunger meter too, i'm afraid i can't help with the code though.
Re: no more food!
Posted: Sun Oct 26, 2014 11:17 am
by Depili
Well there is the necklace in the game that removes the need for food, so at least you should be able to make items that remove the need for eating.
Re: no more food!
Posted: Sun Oct 26, 2014 9:50 pm
by Asteroth
Well at the very least since an alchemist spawns herbs every few steps, you could whip up something that makes food instead of herbs I assume.
But you'd still have to bother keeping and eating the food so that really doesn't help.
Re: no more food!
Posted: Sun Oct 26, 2014 9:54 pm
by NutJob
Probably. May be as easy as setting a timer (@ 60 seconds).
Not actually code
Code: Select all
food = c:getFood()
if(food < 100) then
c:setFood(100)
end
Re: no more food!
Posted: Sun Oct 26, 2014 10:05 pm
by cromcrom
Yes but we would need to be able to mod the native quest, which doesn't seem feasible now

Re: no more food!
Posted: Fri Nov 07, 2014 8:43 pm
by Aisuu
I manage to get it work just fine with timer hook up to this script. Thx to NutJob.
Code: Select all
function foodcheck()
food1 = party.party:getChampion(1):getFood()
if (food1 < 1000) then
party.party:getChampion(1):setFood(1000)
end
food2 = party.party:getChampion(2):getFood()
if (food2 < 1000) then
party.party:getChampion(2):setFood(1000)
end
food3 = party.party:getChampion(3):getFood()
if (food3 < 1000) then
party.party:getChampion(3):setFood(1000)
end
food4 = party.party:getChampion(4):getFood()
if (food4 < 1000) then
party.party:getChampion(4):setFood(1000)
end
end
It work just fine, even if there is no second, third or fourth champion enabled.
But Iam realy lua noob. I tryed to do this with
for i = 1,4 do function, but I cant get it work.
Can anyone help me out here please?
Mayby I should just leave it like this, but I like to learn

Re: no more food!
Posted: Fri Nov 07, 2014 8:49 pm
by cameronC
or an party:onMove hook that sets food to max for each champ every step.