Reduce food consumption

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
maneus
Posts: 246
Joined: Mon Jun 17, 2013 10:42 pm
Location: Switzerland

Reduce food consumption

Post by maneus »

I have searched in the forum but without any result.

Is it possible to reduce the food consumption rate in the game of each champion?

My party is very tough and needs no food for a long time. :D

I would be appreciate for any help.
chaoscommencer
Posts: 119
Joined: Sun Jan 05, 2014 7:48 pm

Re: Reduce food consumption

Post by chaoscommencer »

Indeed this would be nice to know. A recreation of Stonekeep in Grimrock could definitely use this as well, since the original version did not require food. That was one thing I found in this game, that, although realistic, was more of a useless pain to have to deal with. If I were to finish my dungeon I would like to be able to turn off food requirements entirely if possible. Were you ever able to find a solution maneus?
Working on a dungeon that displays a massive collection of assets while sorting them into convenient reusable plugin format (concept from some of leki's mods). Will contribute some of my own models as well eventually and follow that with custom dungeon.
User avatar
DesperateGames
Posts: 90
Joined: Sun Oct 06, 2013 1:54 pm

Re: Reduce food consumption

Post by DesperateGames »

I must admit I have never used these functions so far:
Champion:consumeFood(amount)
Consumes an amount of food taking racial food consumption rate and other factors into account.

Champion:modifyFood(amount)
Adds amount to current food stat directly without applying any modifiers. Amount can be a signed value.

Champion:getFood()
Returns champion’s current food value.
(from scripting reference)

But I could imagine that you could set up a timer to repeatedly execute a function that will add tiny amounts of food to the champions, e.g. "Add 1 food to each champion every 10 seconds" If the player does not look too closely at the food bar, he should not notice that you are adding something in the background now and then, and in result it should feel like it takes a lot longer until your characters get hungry again.

Or, for chaoscommencer's cause, it should be possible to fill the food bars entirely every 30 seconds or so to completely get rid of food.
chaoscommencer
Posts: 119
Joined: Sun Jan 05, 2014 7:48 pm

Re: Reduce food consumption

Post by chaoscommencer »

Thanks for the reply, I've actually considered a workaround just like this, but I feel there must be a disable food requirement/status option somewhere that would eliminate the need for an extra timer and extra scripting overhead.
Working on a dungeon that displays a massive collection of assets while sorting them into convenient reusable plugin format (concept from some of leki's mods). Will contribute some of my own models as well eventually and follow that with custom dungeon.
Post Reply