• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

referencing a table over multiple files

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
Well I was wondering , If I have a file containing a table and I included that file on other lua files with "dofile" I get results as follows:

For files that are of same event(actions scripts for example):
if i changed the value of table from any action script, and get the new value from another action script , vaue have changed

For files in different event:
If i changed the value in on file(in action script for example) and checked the value from another script(talkaction one for example) it donst change.

I would like to know a simple way to link all of them together rather than using a new table instance on every event scripts, any ideas?!
 
Back
Top