Quote: "Please forgive my ignorance. I'm not certain what states your save program saves."
No problem. It saves player health, player lives, player location and all the data from my scripts (RPG variables, Survival variables and Quest data).
Quote: " I also purchased https://en.tgcstore.net/product/19812. If I place a trophy on a table or drop some items in a box, how do I go about saving the position of that item in the gameworld? Or can that not be done? "
That's DVader's script, so by default my script doesn't read data from it. I don't own it so unfortunately I can't check how it handles the item position data. However It's probably possible to add it to my script, but you need to do it manually. Here's how. Assuming DVader's script uses individual variables called ItemPositionX, ItemPositionY, ItemPositionZ to handle the item position (which it probably doesn't but let's assume it just to show you the principle). Find this part of my scrip:
-- Write the Survival Module data
file:write(
g_Survival_Hunger .. "\n" ..
g_Survival_Thirst .. "\n" ..
g_Survival_Tiredness .. "\n")
-- Save file to disk
file:close()
And edit like this:
-- Write the Survival Module data
file:write(
g_Survival_Hunger .. "\n" ..
g_Survival_Thirst .. "\n" ..
g_Survival_Tiredness .. "\n")
-- Write item positions from another script
file:write{
ItemPositionX .. "\n" ..
ItemPositionY .. "\n" ..
ItemPositionZ .. "\n")
-- Save file to disk
file:close()
Then find this:
-- Load the Survival Module variables
g_Survival_Hunger = file:read("*n", "*l")
g_Survival_Thirst = file:read("*n", "*l")
g_Survival_Tiredness = file:read("*n", "*l")
-- Set GameGuru specific player data : Basic stats
And edit like this:
-- Load the Survival Module variables
g_Survival_Hunger = file:read("*n", "*l")
g_Survival_Thirst = file:read("*n", "*l")
g_Survival_Tiredness = file:read("*n", "*l")
-- Load item position data
ItemPositionX = file:read("*n", "*l")
ItemPositionY = file:read("*n", "*l")
ItemPositionZ = file:read("*n", "*l")
-- Set GameGuru specific player data : Basic stats
Basicly like that. If DVader's script uses tables to store data, please open my script and look above the lines I posted here how the tables can be saved.
Note that I had originally intended to make my script save all the entity position automatically, but I had to scrap it because the GameGuru version of the time I wrote the script had a bug that made it read the Y-coordinate wrong (bug that I reported here: https://forum.game-guru.com/thread/213704). I left the code in the script and just commented it out. If you want to try whether it helps, find this:
-- For some reason this causes a weird glitch, so I'll leave it out for now
-- Set entity positions
-- for i = 1,NUM_COUNTERS do
-- if EntityX[i] ~= 0 then
-- ResetPosition(i,EntityX[i],EntityY[i],EntityZ[i])
-- end
-- end
And edit it like this:
-- For some reason this causes a weird glitch, so I'll leave it out for now
-- Set entity positions
for i = 1,NUM_COUNTERS do
if EntityX[i] ~= 0 then
ResetPosition(i,EntityX[i],EntityY[i],EntityZ[i])
end
end
I'm not sure whether the bug has been fixed. I'll test it myself it soon but first I have to figure out a workaround to another bug introduced by GameGuru version 1.3 (this particular bug shouldn't affect Menu_Save/Load script, only Multi-Map script).