Scripts / How to track "loaded" save game...?

Author
Message
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 13th Jan 2021 19:57
As stated, I am trying to finagle some variables, and yes I am making them g_global so that stock
save script saves them--
That may or may not help in the long run, but there's still a trick because in my primary script I want
to assign them a trigger/flag value, but NOT set that if the game has been a loaded (from saved) level.
Thinking.... hmmm? As far as I can think--- (a few feet!) I just have to bite the bullet and
get into the file writing code...
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 13th Jan 2021 21:38
Actually, I will just add a video to the beginning of the load game part...
that should take care of it.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jan 2021 09:45 Edited at: 14th Jan 2021 09:47
i'm not sure i understand the question but wouldn't you just save the variable that triggers the video? i.e. g_playedvideo = 0
and have 'if g_playedvideo == 0 then' to check if the video should play and then change it to 1 when the video is played... the video will only play once
ah i see, you want the video setting to always reset if the game is being loaded from a save - well then don't save / load the variable in the 'if' statement check, that way it will always reset when the game is reloaded
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-04-20 07:23:13
Your offset time is: 2024-04-20 07:23:13