Jump to content

Photo

Permanence (Writing to Save States)


  • Please log in to reply
3 replies to this topic

#1 Professor Snugglesworth

Professor Snugglesworth

    Initiate

  • Members

Posted 12 December 2008 - 11:04 AM

I'm new. I've so far written exactly 1 scripts, but they is a good one, in my estimation, and I would like to continue writing them, it. I think I've got a handle on local effects, things that I can keep contained to one screen. And I think I know how to handle farther-reaching effects, without using the boss key tricks of old. What I'd like to know is: how easily can I write directly to a save state using this ZScript? Is there a method for me to write global variables directly, or do I have to use a workaround like giving special nonfunctional items to the player (like a map/compass/key for DMap 208)?

#2 Joe123

Joe123

    Retired

  • Members

Posted 12 December 2008 - 11:19 AM

Urm.
I don't quite get what you mean by 'Save States', but if you declare a variable globally it'll be accessable by all scripts, and will save when you restart the game.

Except global arrays don't save properly at the moment.
But that's just a bug, so it'll get fixed sometime soon hopefully.

#3 Professor Snugglesworth

Professor Snugglesworth

    Initiate

  • Members

Posted 12 December 2008 - 11:23 AM

Well, that's more or less precisely what I meant. So the global variables only initialize when I first start the quest, and after that, they're always declared, yes? Good to know.

#4 Joe123

Joe123

    Retired

  • Members

Posted 12 December 2008 - 11:36 AM

Yes, that's correct.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users