Hunger and Thirst
Authors: LiTTleDRAgo, ForeverZer0
Version: 1.07
Type: Party/Actor Add-On
Key Term: Actor Add-on
IntroductionBased on ForeverZer0's Hunger/Thirst (http://forum.chaos-project.com/index.php/topic,6363.0.html) script
Quote from: ForeverZer0 on May 14, 2010, 05:54:10 pm
Basically the title says it all. This script will add a Hunger/Thirst dynamic to your game. Actor's hunger/thirst will decrease over time or by stepcount. Has configuration for food/drink items and for states that will be added to actors whose hunger/thirst falls within specified ranges.
Features
Screenshots(http://4.bp.blogspot.com/-GE1FJbsEQcE/UjrIJeK4H7I/AAAAAAAAAVg/Li-ndX1hTCA/s320/hunger&thirst.JPG)
ScriptHere (http://littledrago.blogspot.com/2013/09/rgss23-hunger-and-thirst.html)
InstructionsIn the script
CompatibilityCompatible with VX and VX-Ace
Just in case, compatible with RMXP, although if you use XP, I recommend you to grab the original script
Not Tested with Blizz ABS
Credits and Thanks
- ForeverZer0 for the original script
- LiTTleDRAgo
Author's NotesEnjoy ~
~resurrects long-dead topic~
Maybe I just don't understand how this is set up, but, I can not seem to properly set up items to restore hunger or thirst? Is there anyone who knows this system well enough to provide some instruction on this? I've been able to get the hunger/thirst reduction configured per step count and time, but I can not get it to restore through items.
I take it you're using VXA because of your game? You should probably post your configuration data just to make sure we can test under the same conditions. You're not using any other scripts that might be causing a conflict either, right?
Yes, I decided to try out VXA to see how well it works for what I'm trying to do.
I'm using almost exclusively Drago's scripts, minus a custom savefile script, but that should in no way affect this. I'll upload the project when I get home later this evening.
EDIT: http://rmxpace.com/wp-content/uploads/2015/01/Abandoned.zip
*update to 1.07*
- fixed "cannot restore hunger / thirst when both hp & sp is full"
okay, so, I updated with the newest version, however, that does not fix (sidenote, my hunger and thirst are not full) I also included a savegame in the newest upload of the "demo" and it has lowered thirst and hunger, and I have a food item in inventory, yet when you try to use it, it just gives an error sound and doesn't do anything. My though is that I'm somehow managing to improperly set up the notetag code in the bread item in the database? Hopefully it's as simple as that, but if not, I'm not sure what else to look at.
<recover hunger by percent>
<hunger: 10>
I don't blame you, I got confused for a bit too until I saw the regular expressions.
-is still slightly confused-
so the proper tag for recovering health by 10% is <hunger: 10> ?
EDIT: Yep, nevermind, I looked at the REGEX you were talking about, and tested out my theory. Good to go now lolz. Thanks KK20, you helped quite a bit here.
*levels up both you and drago*
New Issue, screenshot here: http://imgur.com/DSUEH4J
Only occurs during battles, and never on the first round (when player is the one attacking). Probably has something to do with the battle system or menus I'm using; I can upload a copy of the project if needed.
Looks like someone used (or is using) an item during the battle.
I'd try moving
attr_sec_reader :hunger_tags, 'LiTTleDRAgo::HUNGER_THIRST_TAGS'
under Game_Battler instead of Game_Actor.
probably somewhere on your battle system makes your enemies using item/skill that increases/reduces hunger on itself,
or you using such item/skill to the enemies.
(this script is originally for Game_Actors only)
*temporary fix* - at least the game won't crashed when such situation occurred.
probably ~
I tried the fix suggested, but to no avail. I think this may be a case where you might need to see everything in use. I've uploaded a link below.
https://www.dropbox.com/sh/fzjxdoh87sc8mcr/AADo7ajUG6vykLLQwMqPKs7aa?dl=0
which one?
my internet is low, I don't want to download all 150MB++