1-- Copyright (C) 2007, 2010 - Bit-Blot 2-- 3-- This file is part of Aquaria. 4-- 5-- Aquaria is free software; you can redistribute it and/or 6-- modify it under the terms of the GNU General Public License 7-- as published by the Free Software Foundation; either version 2 8-- of the License, or (at your option) any later version. 9-- 10-- This program is distributed in the hope that it will be useful, 11-- but WITHOUT ANY WARRANTY; without even the implied warranty of 12-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13-- 14-- See the GNU General Public License for more details. 15-- 16-- You should have received a copy of the GNU General Public License 17-- along with this program; if not, write to the Free Software 18-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20if not v then v = {} end 21if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end 22 23 24--function bASDFASDF () ()A {}}A SDFASJDF end end end 25 26v.n = 0 27v.mia = 0 28v.baby = 0 29 30v.done = false 31 32function init(me) 33 v.n = getNaija() 34 v.mia = getEntity("MiaGhost") 35 v.baby = getEntity("NaijaChildGhost") 36 37 entity_fh(v.mia) 38 entity_alpha(v.mia, 0) 39 entity_alpha(v.baby, 0) 40end 41 42function update(me, dt) 43 if not v.done and isFlag(FLAG_SECRET02, 0) then 44 if node_isEntityIn(me, v.n) then 45 v.done = true 46 47 changeForm(FORM_NORMAL) 48 49 entity_idle(v.n) 50 51 --cam_toEntity(mia) 52 cam_toNode(getNode("MEMCAM")) 53 overrideZoom(0.9, 18) 54 55 playSfx("naijagasp") 56 57 58 59 setSceneColor(0.5, 0.5, 1, 2) 60 watch(2) 61 62 playMusic("Mystery") 63 64 entity_alpha(v.mia, 1, 2) 65 66 watch(4) 67 68 entity_alpha(v.baby, 1, 2) 69 watch(4) 70 71 --entity_animate(v.mia, "babyLookUp") 72 73 watch(2.5) 74 --fadeOutMusic(3) 75 setSceneColor(1, 1, 1, 3) 76 entity_alpha(v.mia, 0, 1) 77 watch(2) 78 entity_alpha(v.baby, 0, 1) 79 watch(2) 80 81 cam_toEntity(v.n) 82 83 setFlag(FLAG_SECRET02, 1) 84 85 foundLostMemory() 86 87 overrideZoom() 88 89 --updateMusic() 90 91 end 92 end 93 94end 95