Scripts / Survival Module

Author
Message
Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 22nd Feb 2016 22:37 Edited at: 13th Oct 2016 00:58
In a Survival game player needs to find food, water and shelter in order to survive. Each Survival parameter (Hunger, Thirst, Tiredness) gradually increases until it reaches 100 %. If two or more Survival parameters have reached 100 %, player starts losing HP. Player's actions affect the increase speed of Survival parameters. Hunger and Thirst increase faster if player carries more weapons. Tiredness increases faster if player is running or holding a weapon or a flashlight. Survival parameters can be decreased by collecting the Survival items (Food, Drink, Adrenaline) and reset by reaching certain zones (Rest Zone resets Tiredness and Water Zone resets Thirst).

Video of the script so far: https://www.youtube.com/watch?v=9OaPrJ31AeI

Basic script (Hunger, Thirst and Tiredness) is published in the Game Creators Asset Store (Version 1.131, 13.10.2016):

https://en.tgcstore.net/product/26905

Modified gamedata.lua

To save the Survival status (collected Survival items) properly, replace your titlesbank\gamedaa.lua with this file. It's recommend to backup the original file before you do it. If you are using the Quest script, comment out lines 18-29:


For more information (and Quest script compatible version of the gamedata.lua), please see this thread: https://forum.game-guru.com/thread/213751

Attachments

Login to view attachments
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 22nd Feb 2016 23:05
Very nice.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 23rd Feb 2016 02:25
Awesome stuff. I was able to make something similar in FPSCx9 which required the player to eat, drink and use beds. However with GG, I'm no good at LUA. So this is a pretty decent asset for the community.

For your inventory script are you considering making carry weight?
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 23rd Feb 2016 16:51
Just purchased the rest of the scripts you posted. Thank you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 23rd Feb 2016 20:00
Just finished a draft of RPG Menu 1.3. The new version will show the Survival variables in the Status screen if the Menu is used in paraller with the Survival script. Also three new item classes are introduced. I'll test it and aim to upload it to Store within a week (people who have bought it previously will get the update automatically).

Attachments

Login to view attachments
Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 23rd Feb 2016 20:04
Quote: "For your inventory script are you considering making carry weight?"

Good idea. The weight is easy to add, but figuring out a suitable weight penalty might take some time.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 24th Feb 2016 15:34
Looks sweet just been testing the survival scripts and they work well, be nice to have them in the status screen

Login to post a reply

Server time is: 2024-12-22 13:01:18
Your offset time is: 2024-12-22 13:01:18