じ☆ve冰风 发表于 2026-7-12 08:43:20

Thex Hunger and Thirst

Part of:          Thex Tutorial & Demo Systems​

DEMO:Thex Hunger and Thirsthttp://dl.dropbox.com/u/5536575/Hunger & Thirst.exe

What is this?

Excerpt from the Intro Event comments:

Spoiler" Welcome to the Hunger & Thirst bar!

This is between beginner and intermediate.
There are a couple script calls, but don't be intimidated by them.

This uses custom formula on items and 1 common event to get the
job done.

I'll explain the custom formula here:
v += 1;0
All it does is increase variable 1 by 1. Then it returns 0 for the
amount to heal. If you want healing properties on the item, just
change that 0 to the amount you want to heal.

Make sure you point the common event call to an empty common

event. The common event allows eating when HP is full.

Bar credits go to:

Ails on Deviant-Art"



A lot of people want a hunger and thirst bar in their game. While I've not seen one executed in a successful RM game, the idea itself still remains popular.  This accomplishes a very nice hunger and thirst bar.

There's no penalty for going hungry or thirsty at the moment. I felt that was up to the creator to decide. If you want to put a penalty in, just open the 1st common event and find the spot allocated for hunger and thirst penalties.

This is also a great tutorial for learning modulo, as I use it to avoid having to reset the counter, and explain it inside the comments.


http://imageshack.us/a/img267/6158/11989279.png



本贴来自国际rpgmaker官方论坛作者:Titanhex处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/thex-hunger-and-thirst.8290/
页: [1]
查看完整版本: Thex Hunger and Thirst