Thank you for using our website
Your script:
local Main
for _,v in pairs(getgc(true)) do
if typeof(v) == "table" and rawget(v, "DataManager") then
Main = v
break
end
end
if Main.DataManager.currentChunk.regionData.Grass then
--[[ You can spam the doWildBattle function by doing this
Main.Battle.currentBattle = nil
--]]
Main.Battle.doWildBattle(Main.Battle, Main.DataManager.currentChunk.regionData.Grass, {})
--[[ You can get information of the loomians in currentBattle
for _,v in pairs(Main.Battle.currentBattle) do
print(_,v)
end
]]
--[[ End battle
Main.Battle.currentBattle.BattleEnded:Fire()
]]
end