Chaos Project

RPG Maker => RPG Maker Scripts => RMVX Script Database => Topic started by: LiTTleDRAgo on September 19, 2013, 12:13:36 PM

Title: [XP][VX][VXA] Hunger and Thirst
Post by: LiTTleDRAgo on September 19, 2013, 12:13:36 PM
Hunger and Thirst
Authors: LiTTleDRAgo, ForeverZer0
Version: 1.07
Type: Party/Actor Add-On
Key Term: Actor Add-on

Introduction

Based on ForeverZer0's Hunger/Thirst (http://forum.chaos-project.com/index.php/topic,6363.0.html) script

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)

Script

Here (http://littledrago.blogspot.com/2013/09/rgss23-hunger-and-thirst.html)

Instructions

In the script

Compatibility

Compatible 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


Author's Notes

Enjoy ~
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: PhoenixFire on January 29, 2015, 01:49:06 AM
~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.
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: KK20 on January 29, 2015, 10:38:38 PM
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?
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: PhoenixFire on January 29, 2015, 10:56:44 PM
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
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: LiTTleDRAgo on February 01, 2015, 01:17:43 PM
*update to 1.07*

- fixed "cannot restore hunger / thirst when both hp & sp is full"
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: PhoenixFire on February 01, 2015, 09:19:01 PM
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.
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: KK20 on February 02, 2015, 04:57:45 AM
<recover hunger by percent>
<hunger: 10>

I don't blame you, I got confused for a bit too until I saw the regular expressions.
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: PhoenixFire on February 02, 2015, 02:44:48 PM
-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*
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: PhoenixFire on March 09, 2015, 02:10:46 PM
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.
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: KK20 on March 09, 2015, 06:37:34 PM
Looks like someone used (or is using) an item during the battle.

I'd try moving
Code: [Select]
attr_sec_reader   :hunger_tags,         'LiTTleDRAgo::HUNGER_THIRST_TAGS'under Game_Battler instead of Game_Actor.
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: LiTTleDRAgo on March 09, 2015, 06:59:17 PM
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 ~
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: PhoenixFire on March 10, 2015, 12:24:26 AM
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
Title: Re: [XP][VX][VXA] Hunger and Thirst
Post by: LiTTleDRAgo on March 10, 2015, 02:43:12 AM
which one?
my internet is low, I don't want to download all 150MB++