• 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!

Lua Storage table

Nith

New Member
Joined
Jan 11, 2009
Messages
22
Reaction score
1
Good morning! I'm new to scripting. I would like to create a table or list with storages and be able to call the list or table in a lua file in spells. Could you tell me how that would be? TFS 0.3.6
 
Sorry I did not understand correctly and I forgot to specify, I would like to create a TABLE outside the spell script, in lib or in spell / lib and that the spell recognizes 1 of the storages within the table. If the char has storage A, and it's in the table then it should recognize it. Well I will use the table for many spells and I don't want to put the table in all the spells and then have to modify it in each one when I have to.
 
Sorry I did not understand correctly and I forgot to specify, I would like to create a TABLE outside the spell script, in lib or in spell / lib and that the spell recognizes 1 of the storages within the table. If the char has storage A, and it's in the table then it should recognize it. Well I will use the table for many spells and I don't want to put the table in all the spells and then have to modify it in each one when I have to.
Code:
data/lib/000-constant.lua
Lua:
-- don't use local
spellStorages = {}
 
Back
Top