nclx
Member
- Joined
- Jul 18, 2009
- Messages
- 554
- Reaction score
- 15
Hello I'm needing a global table and this is what is happening:
I make global a = {} in /data/test.lua
/data/global.lua imports /data/test.lua
a globalevent calls /data/test.lua function that modifies a.
printing any value of table a from talkaction gives the modified value.
creaturescript onPrepareDeath calls any value of the table a and is not modified.
why the fuck creaturescript doesnt show the modified value? does it has something to do with login.lua registering the onpreparedeath event?
I make global a = {} in /data/test.lua
/data/global.lua imports /data/test.lua
a globalevent calls /data/test.lua function that modifies a.
printing any value of table a from talkaction gives the modified value.
creaturescript onPrepareDeath calls any value of the table a and is not modified.
why the fuck creaturescript doesnt show the modified value? does it has something to do with login.lua registering the onpreparedeath event?