Ok in Grimrock 1 there was a Mine Wallset created. I downloaded the Editor version and noticed it had random dust spawning. I found the code for it but it does not work for Grimrock 2 due to the new ways thing work.
Basically the scrip spawns dust infront or all around the party at given times, I assume.
A Timer was connected to function bigQuake() - timerInteval = 0.2
I really need help on getting the Scrip (below) to work. I just don't know how to do it.
Code: Select all
quakeTick1 = 1
function bigQuake()
local dustTargY = {-3, -2, -1, 0, 1, 2, 3}
dY = dustTargY[math.random(1, #dustTargY)]
local dustTargX = {-3, -2, -1, 0, 1, 2, 3}
dX = dustTargX[math.random(1, #dustTargX)]
if quakeTick1 < 50 then
spawn("fx", party.level, party.x+dX, party.y+dY, 0):setParticleSystem("party_earthquake_dust")
else
quakeTick1 = 1
return
end
quakeTick1 = quakeTick1 + 1
end