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

storage create

theduck

Member
Joined
Dec 6, 2018
Messages
246
Reaction score
20
I'm trying to create something using global storage

global storage = between 1 to 100
print ('1')

global storage = between 100 and 200

print ('2')
global storage = between 200 and 300
print ('2')

My question is how do you use this between '1 to 100'
 
Solution
math.random[a,b]

or
global variable = global.storage
if global.storage <= 100 then
print("1")
elseif global.storage <= 200 and global.storage >=101 then
print("2")
elseif global.storage <= 300 and global.storage >= 201 then
print("3")
end
lua:19: attempt to compare number with string
stack traceback:

elseif temp_count > vote_count then -- if the global storage is greater then the current 'maximum' votes...

---

storage = storage + global_map_storages[rand][3]
put in the place of the line
maps = maps .. global_map_storages[2] -- stores the city name for later use, along with previous city names.
you're replacing the wrong script with the information.
This replacement is for the talkaction.
Unless I'm mistaken about what you were wanting?

Did you want the votes to start at 100 for thais then add +1? ->100, 101, 102, 103..?
Or did you want thais to receive 100 votes per vote? ->0, 100, 200, 300..?
 
you're replacing the wrong script with the information.
This replacement is for the talkaction.
Unless I'm mistaken about what you were wanting?

Did you want the votes to start at 100 for thais then add +1? ->100, 101, 102, 103..?
Or did you want thais to receive 100 votes per vote? ->0, 100, 200, 300..?
would be for the globalevents
I wanted every city to have a number of votes for it to be executed but only 1 to be executed to which I had the most votes

exemple

thais = minimum votes = 100 votes have 90 votes
carlin = minimum votes = 200 votes have 200 votes
liberty bay = minimum votes = 300 votes have 290 votes

check votes
thais have 90 votes
carlin 200 votes
liberty bay 290 votes

>carlin will be executed
 
Bump
Tfs 1x
would be for the globalevents
I wanted every city to have a number of votes for it to be executed but only 1 to be executed to which I had the most votes

exemple

thais = minimum votes = 100 votes have 90 votes
carlin = minimum votes = 200 votes have 200 votes
liberty bay = minimum votes = 300 votes have 290 votes

check votes
thais have 90 votes
carlin 200 votes
liberty bay 290 votes
Bump
 
Back
Top