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

using global variables

Magictibiaman

New Member
Joined
May 25, 2009
Messages
371
Reaction score
0
does

Ex. setGlobalStorageValue(6544, -1)
work as a global variable
i mean as in i want to store values in 6544 (even if it is just -1,0,1)

can lua access this storage value from other lua scores without having to scripts this on a player?

essentially i am asking does it work as a global variable where any script can get/set that variable?

or if not what else can i use?
 
Code:
function fag()
         local gay = "local variable"
         faggot = "global variable"
         print(gay, faggot)
end
fag()
print(gay, faggot)
ex
so now faggot is a global variable
but gay is a local variable
:)
Me love infractions :peace:
 
Code:
function fag()
         local gay = "local variable"
         faggot = "global variable"
         print(gay, faggot)
end
fag()
print(gay, faggot)
ex
so now faggot is a global variable
but gay is a local variable
:)
Me love infractions :peace:

You should not receive an infraction, you are not pointing the insult towards somebody.
 
Back
Top