1local ns = {} 2setmetatable(ns, {__index = _G}) 3rain_in_battles_script = ns; 4setfenv(1, ns); 5 6local Battle = nil 7local Script = nil 8 9local ripples = nil 10 11function Initialize(battle_instance) 12 Battle = battle_instance; 13 Script = Battle:GetScriptSupervisor(); 14 15 -- Make the rain starts if needed 16 Battle:TriggerBattleParticleEffect("data/visuals/particle_effects/rain.lua", 512.0, 768.0); 17 ripples = Script:CreateAnimation("data/battles/battle_scenes/ripples.lua"); 18 ripples:SetDimensions(256.0, 153.6); -- 256.0 * 0.6 19end 20 21--function Restart() 22 23--end 24 25function Update() 26 ripples:Update(); 27end 28 29local white_color = vt_video.Color(1.0, 1.0, 1.0, 1.0); 30 31function DrawBackground() 32 if (ripples ~= nil) then 33 VideoManager:Move(235.0, 340.0); 34 ripples:Draw(white_color); 35 VideoManager:Move(235.0, 596.0); 36 ripples:Draw(white_color); 37 VideoManager:Move(491.0, 340.0); 38 ripples:Draw(white_color); 39 VideoManager:Move(491.0, 596.0); 40 ripples:Draw(white_color); 41 end 42end 43 44--function DrawPostEffects() 45 46--end 47