silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,484
- Solutions
- 9
- Reaction score
- 217
hello! I'm trying make a script that load map with a rand
my simple code
but the code not load the map and not print my tests
USING TFS 1.2!!!!
maybe @Printer or @WibbenZ know how fix it :3
my simple code
Code:
function onStartup()
local rand = Game.setStorageValue(GlobalStorage.Teste, math.random(3))
if rand == 1 then
Game.loadMap("data/world/teste/1.otbm")
print("test1")
elseif rand == 2 then
Game.loadMap("data/world/teste/2.otbm")
print("test2")
elseif rand == 3 then
Game.loadMap("data/world/teste/3.otbm")
print("test3")
end
return true
end
USING TFS 1.2!!!!
maybe @Printer or @WibbenZ know how fix it :3
Last edited: