Jump to content
Chef Tonberry

Saving Mod Variables?

Recommended Posts

Was wondering if there was a way to save a variable within a save game.

To give context I have a method that makes a random number when a new game is created, I want that number to stay the same till the end of that save.


local function randNumber()
	local randNum = ZombRand(100)

--this is just an example, I would like to know how to save any variable.

Edit: Nevermind I've found an answer, you can delete this post if you'd like.

Edited by Chef Tonberry

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...