Description
Tarkus1971's Survival Script Set
Scripts Included:
_t1971_survival
This script sets up the sprites and variables used by all the other scripts.
Assign to dynamic and always on entity.
_increase_thirst
This makes the player more thirsty.
Assign to dynamic and always on entity.
_increase_hunger
This makes the player more hungry.
Assign to dynamic and always on entity.
_increase_stamina
This script will increase until the player dies from exhaustion.
Assign to dynamic and always on entity.
drink00
Add this to an entity and when the player moves near, just press E to drink,
This will restore thirst to 00.
eat00
Add this to an entity and when the player moves near, just press E to eat,
This will restore hunger to 00.
stamina00
Add this to an entity and when the player moves near, just press E to use,
This will restore stamina to 00.
restore_all00
This is a cure it all. Press E and all thirst, hunger and stamina will reset to 00.
heat_area
Assign this a dynamic entity and always on. This will create a heat zone that is
300 units in diameter. This will increase thirst rate.
hunger_area
Assign this a dynamic entity and always on. This will create a hunger zone that is 300 units in diameter. This will increase hunger rate.
danger_area
Assign this a dynamic entity and always on. This will create a danger zone that is 300 units in diameter. This will increase stamina rate.
You can edit the variable inside the zone scripts above, but work on copies of the originals.
Please take care if you do edit the scripts as all the scripts interact with each other.
NOTES:
When players thirst, hunger and stamina drop below a certain level
a warning will scroll across the screen for right to left. This uses a large sprite
for each one. Take heed of the warning.
If thirst bottoms out, hunger rate increases.
If hunger bottoms out, stamina rate increase.
Once stamina hits the bottom of the gauge, the player will die.
I have added hidehuds() to the setup script so if you want to see the huds just delete that line.