What,exactly, gets stored with SaveGameSlot?

Started by That Guy, Wed 10/08/2005 18:41:19

Previous topic - Next topic

That Guy

Gents,

Let's say I've got a few situations I need to keep track of in-game, like whether or not the hero has visited six specific locations and I want to trigger some kind of event once the they've set foot on the sixth.

Now, I can think of several ways to do it.

One, I can create a global script variable called "numVisits" and bump it up every time they first enter the relevant rooms.  Two, I can stick a custom property on each room and flag it once the player enters, then loop through the rooms and check.  Or three, I can do some variation of the above.

Now, I'd wager that custom properties and special states of each object get saved when a game is saved automatically, but what about script variables?  Can I globally declare a few int counters and rely on them being the same values I set them to during gameplay when the game is restored?

Hope this makes sense, and thanks in advance.

TG

Ishmael

Everything you can declare or change will get saved. All variables, all character positions, object views, everything. It's to work as a 'save' feature afterall, so you can save, quit and continue from the exactly same spot when you next time start the game...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk