Originally Posted by
VX2
rnd = mod(dt.sec,random(1,#vx.SceneList-1))+1;
ugh. o.0 how I can write this code?
of course must be:
Code:
rnd = mod(dt.sec+random(1,#vx.SceneList),#vx.SceneList-1)+1;
also full function for 12340 have no light part.
try to replace with this:
[spoiler]
Code:
function ShowScene(self)
local rnd, dt;
dt = date("*t");
rnd = mod(dt.sec+random(1,#vx.SceneList),#vx.SceneList-1)+1;
if vx.BGTexture[rnd] == "" then
if VXBGTextureAL then VXBGTextureAL:Hide(); end
if VXBGTextureCS then VXBGTextureCS:Hide(); end
if VXBGTextureRW then VXBGTextureRW:Hide(); end
else
if VXBGTextureAL then
VXBGTextureAL:SetTexture(vx.BGTexture[rnd]);
VXBGTextureAL:Show();
end
if VXBGTextureCS then
VXBGTextureCS:SetTexture(vx.BGTexture[rnd]);
VXBGTextureCS:Show();
end
if VXBGTextureRW then
VXBGTextureRW:SetTexture(vx.BGTexture[rnd]);
VXBGTextureRW:Show();
end
end
self:SetModel(vx.SceneList[rnd]);
self:SetCamera(0);
self:SetSequence(0);
PlayGlueAmbience(vx.Ambience[rnd], 4.0);
PlayLoginMusic();
end
[/spoiler]