Resource icon

Resource Hunger and Saturation Script

Maurili

Not a scobunny
Member
Joined
Jan 23, 2018
Posts
44
Maurili submitted a new resource:

Hunger and Saturation Script - Adds hunger to your game for those that want a survival aspect in your game

I wrote this script as part of a small project I had an idea of, it's a simple hunger system that includes Minecraft-styled saturation
#Health System
#Hunger
Events.onStepTakenTransferPossible+=proc {
if $game_switches[52] #hunger Switch if ON you need to survive
case $game_variables[31]
when 0
$game_variables[26] -= 1 if rand(10) == 0 #take from hunger like normal
else
$game_variables[31] -= 1 if rand(10) == 0 #take from saturation
# Starve Check
case...

Read more about this resource...
 

messi3d

Trainer
Member
Joined
Nov 23, 2020
Posts
68
Age
18
Maurili submitted a new resource:

Hunger and Saturation Script - Adds hunger to your game for those that want a survival aspect in your game



Read more about this resource...
Does this work on v18?I have an amazing idea!How about if the character were very hungry, would end up in the Pokémon center?And penalize the coach for that?😮🤔Would you be able to make this script work that way?and most importantly, do a HUD that displays the character's health bar?it would be a new revolution in the RPG of Pokémon games!
 

Maurili

Not a scobunny
Member
Joined
Jan 23, 2018
Posts
44
i didnt update it for V18 should be easy trough
the blackout scene automatically teleports you to a pokemon center
i dunno how to make HUDS
 

messi3d

Trainer
Member
Joined
Nov 23, 2020
Posts
68
Age
18
i didnt update it for V18 should be easy trough
the blackout scene automatically teleports you to a pokemon center
i dunno how to make HUDS
If you make it work on v18, there may be some friends to work on the hud
 

Leondrea

Trainer
Member
Joined
Jul 26, 2020
Posts
65
A dice roll that decides whether the players hungry or thirsty?
If so, then it means that the dice roll could randomly add less hunger to the character, and the dice roll could then add more hunger to the character in another order. I'm just wondering if there isn't another way of doing that. Maybe by adding more hunger each time the player defeats a trainer or (x)trainer, x being the number of trainers the player has to defeat in order to be hungry?
 

Maurili

Not a scobunny
Member
Joined
Jan 23, 2018
Posts
44
A dice roll that decides whether the players hungry or thirsty?
If so, then it means that the dice roll could randomly add less hunger to the character, and the dice roll could then add more hunger to the character in another order. I'm just wondering if there isn't another way of doing that. Maybe by adding more hunger each time the player defeats a trainer or (x)trainer, x being the number of trainers the player has to defeat in order to be hungry?
Not exactly a dice roll it just does it
at random
like a 1/10 chance
Maybe by adding more hunger each time the player defeats a trainer or (x)trainer, x being the number of trainers the player has to defeat in order to be hungry?
you could takeout the beginning part of the script to use it that way
 

Leondrea

Trainer
Member
Joined
Jul 26, 2020
Posts
65
Not exactly a dice roll it just does it
at random
like a 1/10 chance
Maybe by adding more hunger each time the player defeats a trainer or (x)trainer, x being the number of trainers the player has to defeat in order to be hungry?
you could takeout the beginning part of the script to use it that way
Oh, so it works that way.

I'm new at scripting but I will try it out in another Vanilla Essentials, just in case if I do something wrong.
Thanks for answering me, and thanks for the advice.
 
Top