Author Topic: [XP][VX][VXA] Hunger and Thirst  (Read 8047 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
[XP][VX][VXA] Hunger and Thirst
« 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 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

  • Look at Original Thread

Screenshots



Script

Here

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

  • ForeverZer0 for the original script
  • LiTTleDRAgo

Author's Notes

Enjoy ~
« Last Edit: February 01, 2015, 01:18:08 PM by LiTTleDRAgo »

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #1 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.
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3038
  • LV: 372
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #2 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?



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901
Join the CP Discord Server

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #3 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
« Last Edit: January 30, 2015, 03:02:32 PM by PhoenixFire »
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #4 on: February 01, 2015, 01:17:43 PM »
*update to 1.07*

- fixed "cannot restore hunger / thirst when both hp & sp is full"

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #5 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.
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3038
  • LV: 372
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #6 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.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901
Join the CP Discord Server

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #7 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*
« Last Edit: February 02, 2015, 02:50:06 PM by PhoenixFire »
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #8 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.
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3038
  • LV: 372
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #9 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.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901
Join the CP Discord Server

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #10 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 ~

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #11 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
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Hunger and Thirst
« Reply #12 on: March 10, 2015, 02:43:12 AM »
which one?
my internet is low, I don't want to download all 150MB++