Variables ranges

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Variables ranges

Post by cromcrom » Sun Oct 26, 2014 10:41 am

hi,
my question is, how do I create game-wide variables ? Do I have to use tables (which doesn't bother me, really) ?

local xxxx = function wide variable
xxxx = script "global" variable

what would be a game global variable ?

thanks.
A trip of a thousand leagues starts with a step.

NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Variables ranges

Post by NutJob » Sun Oct 26, 2014 2:22 pm


User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: Variables ranges

Post by cromcrom » Sun Oct 26, 2014 3:20 pm

Tx, it did help me. I tried various ways to set up global variables. maybe it doesn't work beacause I must try to save/reload the game, instead of just updating it with f5 ^^
A trip of a thousand leagues starts with a step.

Post Reply