1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-12 09:22:00 +00:00

Move scripts to files, to make automated overriding easier

This commit is contained in:
fgenesis 2013-11-17 02:23:39 +01:00
commit 96195219e8
782 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,105 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/maps/finalcommon.lua")
function hasQuit()
if not (getEnqueuedState() == "") then
fade2(1, 0, 1, 1, 1)
return true
end
return false
end
function init()
--return
fade2(0, 0, 1, 1, 1)
overrideZoom(0.8)
local n = getNaija()
entity_setPosition(n, 0, 0)
playMusicOnce("Intro")
user_set_demo_intro(0)
user_save()
local camDummy = createEntity("Empty")
local start1 = getNode("START1")
local start2 = getNode("START2")
local start3 = getNode("START3")
local end1 = getNode("END1")
local end2 = getNode("END2")
local end3 = getNode("END3")
-- 1
entity_warpToNode(camDummy, start1)
cam_toEntity(camDummy)
entity_swimToNode(camDummy, end1, SPEED_SLOW)
fade(0, 4)
watch(4)
if hasQuit() then return end
watch(3)
if hasQuit() then return end
fade(1, 4)
watch(4)
if hasQuit() then return end
-- 2
entity_warpToNode(camDummy, start2)
cam_toEntity(camDummy)
entity_swimToNode(camDummy, end2, SPEED_SLOW)
fade(0, 6)
watch(6)
if hasQuit() then return end
fade(1, 6)
watch(6)
if hasQuit() then return end
-- 3
entity_warpToNode(camDummy, start3)
cam_toEntity(camDummy)
entity_swimToNode(camDummy, end3, SPEED_SLOW)
fade(0, 4)
watch(4)
if hasQuit() then return end
watch(4)
if hasQuit() then return end
overrideZoom(1, 6)
watch(2)
watch(2.5)
--watch(5)
fade2(1, 2, 1, 1, 1)
watch(2)
if hasQuit() then return end
--jumpState("Title")
loadMap("Title")
end

View file

@ -0,0 +1,47 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.altar = 0
function init(me)
node_setCursorActivation(me, true)
end
function update(me, dt)
if v.altar == 0 then
v.altar = node_getNearestEntity(me, "Altar")
end
if v.altar ~= 0 then
node_setCursorActivation(me, entity_isState(v.altar, STATE_OPENED))
end
end
function activate(me)
if v.altar ~= 0 then
debugLog("found altar")
if entity_isState(v.altar, STATE_OPENED) then
entity_setState(v.altar, STATE_CLOSE)
elseif entity_isState(v.altar, STATE_CLOSED) then
entity_setState(v.altar, STATE_OPEN)
end
end
end

View file

@ -0,0 +1,34 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if hasLi() then
if getBeacon(BEACON_LI) then
if node_isEntityIn(me, getNaija()) then
setBeacon(BEACON_LI, false)
end
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if not getBeacon(BEACON_SONGCAVE) then
if node_isEntityIn(me, getNaija()) then
setBeacon(BEACON_SONGCAVE, true, 128.578, 159.092, 0.5, 1, 1)
beaconEffect(BEACON_SONGCAVE)
end
end
end

View file

@ -0,0 +1,36 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.n = 0
function init(me)
v.n = getNaija()
end
function update(me, dt)
if node_isEntityIn(me, v.n) then
local x = entity_x(v.n) - node_x(me)
local y = entity_y(v.n) - node_y(me)
vector_setLength(x, y, 2000*dt)
entity_addVel(v.n, x, y)
end
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleBabyCrib", FLAG_COLLECTIBLE_BABYCRIB)
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleCrabCostume", FLAG_COLLECTIBLE_CRABCOSTUME)
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleEnergyTemple", FLAG_COLLECTIBLE_ENERGYTEMPLE)
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleMithalanCostume", FLAG_COLLECTIBLE_MITHALANCOSTUME)
end
function update(me, dt)
end

View file

@ -0,0 +1,30 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
debugLog("CollectiblePiranhaEgg")
v.commonInit(me, "CollectiblePiranhaEgg", FLAG_COLLECTIBLE_PIRANHAEGG)
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleTeenCostume", FLAG_COLLECTIBLE_TEENCOSTUME)
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleTurtleShell", FLAG_COLLECTIBLE_TURTLESHELL)
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
dofile("scripts/include/nodecollectibletemplate.lua")
function init(me)
v.commonInit(me, "CollectibleUrchinCostume", FLAG_COLLECTIBLE_URCHINCOSTUME)
end
function update(me, dt)
end

View file

@ -0,0 +1,28 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
function init(me)
node_setCursorActivation(me, true)
end
function activate(me)
setCostume("Sharan")
end

View file

@ -0,0 +1,45 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.n = 0
v.done = false
function init(me)
v.n = getNaija()
end
function update(me)
if node_isEntityIn(me, v.n) and not v.done then
voice("Laugh1")
v.done = true
--[[
if isFlag(FLAG_CREATORVOICE, 0) then
voice("Laugh1")
elseif isFlag(FLAG_CREATORVOICE, 1) then
voice("Laugh2")
elseif isFlag(FLAG_CREATORVOICE, 2) then
voice("Laugh2")
end
setFlag(FLAG_CREATORVOICE, getFlag(FLAG_CREATORVOICE)+1)
]]--
end
end

View file

@ -0,0 +1,35 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
v.door = 0
function init(me)
v.door = node_getNearestEntity(me, "EnergyDoor")
end
function update(me, dt)
if v.door == 0 then
debugLog("door is 0")
end
entity_setPosition(v.door, entity_x(v.door)+dt*10, entity_y(v.door))
end

View file

@ -0,0 +1,149 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.n = 0
v.boss = 0
v.ompo = 0
v.start = 0
v.goto = 0
v.eatPos = 0
function init(me)
v.start = getNode("OMPOSTART")
v.goto = getNode("OMPOGOTO")
v.boss = getEntity("EnergyBoss")
v.eatPos = getNode("EATPOS")
v.n = getNaija()
if isFlag(FLAG_OMPO, 4) then
entity_alpha(v.boss, 0)
end
end
v.c = false
function update(me)
if v.c then return end
if node_isEntityIn(me, v.n) and isFlag(FLAG_OMPO, 4) and isFlag(FLAG_ENERGYBOSSDEAD, 0) then
v.c = true
entity_idle(v.n)
if entity_isfh(v.n) then entity_fh(v.n) end
musicVolume(0.5, 1)
watch(1)
v.ompo = createEntity("Ompo", "", node_x(v.start), node_y(v.start))
entity_alpha(v.ompo, 0)
entity_alpha(v.ompo, 1, 1)
entity_setState(v.ompo, STATE_INTRO)
entity_flipToEntity(v.ompo, v.n)
playSfx("Ompo")
watch(0.5)
--cam_toEntity(v.ompo)
entity_setPosition(v.ompo, node_x(v.goto), node_y(v.goto), 3, 0, 0, 1)
--entity_setEntityLayer(v.ompo, 0)
watch(3)
musicVolume(0, 5)
watch(1)
-- do animation stuff
entity_alpha(v.boss, 1, 0.1)
entity_setPosition(v.boss, node_x(v.eatPos), node_y(v.eatPos))
--
entity_setState(v.boss, STATE_APPEAR)
watch(1.3)
emote(EMOTE_NAIJAUGH)
setGameSpeed(0.5)
watch(0.5)
setGameSpeed(1)
entity_alpha(v.ompo, 0)
entity_setPosition(v.ompo, 0, 0)
-- now, set the bone on
local boneOmpo = entity_getBoneByName(v.boss, "Ompo")
bone_setVisible(boneOmpo, true)
bone_scale(boneOmpo, 0.4, 0.4)
watch(0.1)
playSfx("Bite")
cam_toEntity(v.boss)
--[[
watch(0.5)
local ct = 0
while entity_isAnimating(boss) do
watch(0.2)
--playSfx("Bite")
ct = ct + 1
if ct >= 2 then
break
end
end
watch(2)
playSfx("Gulp")
]]--
while entity_isAnimating(v.boss) do
watch(FRAME_TIME)
end
bone_scale(boneOmpo, 0, 0, 0.5)
--watch(0.5)
cam_toEntity(v.boss)
entity_setState(v.boss, STATE_INTRO)
watch(1.5)
playMusic("BigBoss")
cam_toEntity(v.n)
setFlag(FLAG_OMPO, 5)
v.c = false
end
end

View file

@ -0,0 +1,42 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.naija = 0
function init(me)
v.naija = getNaija()
node_setCursorActivation(me, false)
if isStory(9) then
-- spawn energy god chase
local boss = createEntity("EnergyBossClimb")
entity_warpToNode(boss, getNode("ENERGYBOSS_SPAWN"))
end
end
function update(me, dt)
if entity_y(v.naija) < node_y(me) then
if getStory() < 10 then
setStory(10)
setCanWarp(1)
end
end
end

View file

@ -0,0 +1,47 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.naija = 0
function init(me)
node_setCursorActivation(me, false)
v.naija = getNaija()
-- kill the boss if he shouldn't be there anymore
if getStory() > 8 then
debugLog("killing boss?")
local energyBoss = getEntity("EnergyBoss")
if energyBoss ~= 0 then
entity_delete(energyBoss)
end
end
end
function activate(me)
end
function update(me, dt)
if getStory() <= 8 then
if node_isEntityIn(me, v.naija) then
setStory(9)
end
end
end

View file

@ -0,0 +1,57 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.naija = 0
v.door = 0
v.done = false
function init(me)
v.naija = getNaija()
node_setCursorActivation(me, false)
v.door = node_getNearestEntity(me, "EnergyDoor")
if v.door ~= 0 then
entity_setState(v.door, STATE_OPENED)
end
end
function activate(me)
end
function update(me, dt)
if not v.done and getStory() <= 8 then
if node_isEntityIn(me, v.naija) then
v.done = true
local boss = node_getNearestEntity(me, "EnergyBoss")
setStory(8)
entity_setState(v.door, STATE_CLOSE)
entity_flipToEntity(getNaija(), boss)
wnd(1)
txt("Naija: ...")
wnd(0)
entity_setState(boss, STATE_AWAKEN)
playMusic("BigBoss")
end
end
end

View file

@ -0,0 +1,139 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.energyGod = 0
function init(me)
v.energyGod = getEntity("EnergyGod")
node_setCursorActivation(me, false)
if getStory() >= 5.1 then
entity_delete(v.energyGod)
v.energyGod = 0
end
end
function song(me, song)
if isStory(5) then
if song == SONG_ENERGYFORM then
entity_flipToEntity(getNaija(), v.energyGod)
wnd(1)
txt("At last, I am free. Now use the gift of my spirit, little Naija.")
--txt("ENERGY GOD FADES AWAY")
wnd(0)
entity_delete(v.energyGod, 3)
watch(3)
voice("naija_energyform")
setStory(5.1)
end
end
end
function update(me, dt)
if getStory()<5 then
if entity_x(getNaija()) < node_x(me) then
local naija = getNaija()
local energyDoor = node_getNearestEntity(me, "EnergyDoor")
if energyDoor ~= 0 then
entity_setState(energyDoor, STATE_CLOSE)
end
entity_idle(naija)
entity_clearVel(naija)
setStory(5)
watch(3.1)
entity_flipToEntity(naija, v.energyGod)
wnd(1)
txt("Creature: Who goes there?")
txt("Naija: It... it is I, Naija.")
txt("Creature: Naija... what a beautiful name.")
txt("Naija: Beautiful?")
txt("Creature: Come closer, little Naija.")
wnd(0)
entity_swimToNode(naija, getNode("ENERGYGOD_NAIJA"))
entity_watchForPath(naija)
cam_toNode(getNode("ENERGYGOD_CAM"))
wnd(1)
txt("Naija: ...")
txt("Naija: In the name of the Old Father! What kind of foul creature are you?")
txt("Nerhaji: Ha! Foul? I am Nerhaji! Once I was as mighty a God as any. Now reduced to this form... it is more than foul, it is sacrilege.")
wnd(0)
-- [[ACTION...
--txt("Action: ENERGY GOD GRABS NAIJA")
entity_animate(v.energyGod, "grabTransition")
watch(0.25)
-- ...ACTION]]
setNaijaHeadTexture("Pain")
entity_animate(getNaija(), "trapped", LOOP_INF)
entity_animate(v.energyGod, "grabLoop", LOOP_INF)
watch(1)
wnds(1)
txt("Naija: What? Put me down!")
txt("Nerhaji: You are a defiant one, indeed. One I would have called a sinner, so long ago. One who would have been fed to me, as nothing more than a tasty morsel.")
txt("Naija: *pain* Let... me... go!")
-- [[ACTIoN...
txt("Action: SQUEEZING SOUND")
-- ...ActioN]]
--entity_animate(getNaija(), "trapped2", LOOP_INF)
txt("Nerhaji: This pain you feel Naija, does it make you feel alive?")
txt("Naija: *pain* What...?")
txt("Nerhaji: Your bones could be crushed in an instant. Your spirit extinguished from this realm forever.")
txt("Naija: *pain* ...")
txt("Nerhaji: You may very well be asking yourself, 'Why am I still alive?'")
txt("Nerhaji: The answer is simple.")
txt("Nerhaji: It is by my grace that you are allowed to continue squirming in my mighty grasp.")
txt("Nerhaji: For you see, Naija; I need something from you.")
txt("Nerhaji: I require a gift, and it is a gift that even a frail mortal as yourself, can provide.")
txt("Naija: *pain* What... do you want...")
txt("Nerhaji: Quite simply, Naija, I am old. I am tired.")
txt("Nerhaji: I have spent an eternity in this place, longing to be free.")
txt("Naija: *pain* What... makes you think... that I would free you...")
txt("Nerhaji: Ha! As if I would desire to rule in this dying age. No, Naija... I wish to be free from existence.")
txt("Naija: You want to... die?")
wnd(0)
entity_animate(v.energyGod, "idle", LOOP_INF)
--ENERGY GOD RELASES NAIJA
setNaijaHeadTexture("")
entity_idle(naija)
entity_swimToNode(naija, getNode("NAIJA_BACKOFF"))
entity_watchForPath(naija)
entity_flipToEntity(naija, v.energyGod)
wnd(1)
txt("Nerhaji: What was truly me has long since died. All that remains is to free my spirit.")
txt("Nerhaji: I will teach you the Song that will bind me to the void, once and for all.")
wnd(0)
cam_toEntity(naija)
-- gain energy form song
learnSong(SONG_ENERGYFORM)
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_NAIJA_ENTERSONGCAVE,0) then
if node_isEntityIn(me, getNaija()) then
voice("naija_entersongcave")
setFlag(FLAG_NAIJA_ENTERSONGCAVE, 1)
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_FORMBARRIER,0) then
if node_isEntityIn(me, getNaija()) then
setControlHint(getStringBank(20), 0, 0, 0, 10, "SongHints/EnergyFormSong")
setFlag(FLAG_NAIJA_RETURNTONORMALFORM, 1)
end
end
end

View file

@ -0,0 +1,36 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.done = false
function init(me)
end
function update(me, dt)
if v.done then return end
if node_isEntityIn(me, getNaija()) then
if foundLostMemory(FLAG_SECRET01) then
v.done = true
end
end
end

View file

@ -0,0 +1,36 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.done = false
function init(me)
end
function update(me, dt)
if v.done then return end
if node_isEntityIn(me, getNaija()) then
if foundLostMemory(FLAG_SECRET02) then
v.done = true
end
end
end

View file

@ -0,0 +1,36 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.done = false
function init(me)
end
function update(me, dt)
if v.done then return end
if node_isEntityIn(me, getNaija()) then
if foundLostMemory(FLAG_SECRET03) then
v.done = true
end
end
end

View file

@ -0,0 +1,41 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.n = 0
v.done = false
function init(me)
v.n = getNaija()
end
function update(me, dt)
if isDeveloperKeys() then
if not v.done and node_isEntityIn(me, v.n) then
debugLog("all treasures")
for i = FLAG_COLLECTIBLE_START, (FLAG_COLLECTIBLE_END-1) do
setFlag(i, 1)
end
v.done = true
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_HINT_IGFDEMO, 0) then
if node_isEntityIn(me, getNaija()) then
setControlHint(getStringBank(8), 0, 0, 0, 8)
setFlag(FLAG_HINT_IGFDEMO, 1)
end
end
end

View file

@ -0,0 +1,39 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.timer = 0
v.interval = 1
function init()
v.n = getNaija()
end
function update(me, dt)
if node_isEntityIn(me, v.n) then
v.timer = v.timer - dt
if v.timer < 0 then
v.timer = v.interval
entity_damage(v.n, me, 2)
end
end
end

View file

@ -0,0 +1,41 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
v.done = 0
function init(me)
end
function update(me, dt)
--return
if v.done==1 then
quitNestedMain()
end
if v.done == 0 and (isLeftMouse() or isRightMouse() or isEscapeKey()) then
v.done = 1
debugLog("jumpstate title")
quitNestedMain()
fade2(1, 0, 1, 1, 1)
loadMap("Title")
--jumpState("Title", true)
end
end

View file

@ -0,0 +1,38 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
node_setCursorActivation(me, true)
end
function activate(me)
local energyBoss = node_getNearestEntity(me, "EnergyBoss")
if energyBoss ~=0 then
debugLog("Killing Energy Boss")
entity_setState(energyBoss, 1007)
else
debugLog("Could not find energy boss")
end
end
function update(me, dt)
end

View file

@ -0,0 +1,29 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
function init(me)
end
function update(me, dt)
if node_isEntityPast(me, getNaija(), 0, 1, 512) then
loadMap("OpenWaters03", "OPENWATERS03_LEFT")
end
end

View file

@ -0,0 +1,86 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function activate(me)
end
function run(me)
if isFlag(FLAG_NAIJA_MEMORYCRYSTAL, 0) then
setFlag(FLAG_NAIJA_MEMORYCRYSTAL, 1)
local n = getNaija()
entity_idle(n)
entity_flipToNode(n, getNode("SAVEPOINT"))
local camNode = getNode("MEMORYCRYSTALCAM1")
local camNode2 = getNode("MEMORYCRYSTALCAM2")
local camNode3 = getNode("MEMORYCRYSTALCAM3")
local camNode4 = getNode("SAVEPOINT")
local camDummy = createEntity("Empty")
entity_warpToNode(camDummy, camNode)
setCameraLerpDelay(1.0)
cam_toEntity(camDummy)
overrideZoom(0.75, 1)
entity_animate(getNaija(), "look45", LOOP_INF, LAYER_HEAD)
entity_swimToNode(camDummy, camNode2, SPEED_SLOW)
entity_watchForPath(camDummy)
voice("naija_memorycrystal")
entity_swimToNode(camDummy, camNode3, SPEED_SLOW)
entity_watchForPath(camDummy)
entity_swimToNode(camDummy, camNode4, SPEED_SLOW)
entity_watchForPath(camDummy)
overrideZoom(0.6, 9)
watch(9)
screenFadeCapture()
--overrideZoom(1, 4)
overrideZoom(0)
setCameraLerpDelay(0.0001)
cam_toEntity(n)
screenFadeGo(6)
watch(6)
entity_idle(n)
setCameraLerpDelay(0)
entity_delete(camDummy)
end
end
function update(me, dt)
if node_isEntityIn(me, getNaija()) then
run(me)
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_NAIJA_ENERGYBARRIER,0) then
if node_isEntityIn(me, getNaija()) then
voice("naija_energybarrier")
setFlag(FLAG_NAIJA_ENERGYBARRIER, 1)
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_NAIJA_ENTERVEDHACAVE,0) then
if node_isEntityIn(me, getNaija()) then
voice("naija_entervedhacave")
setFlag(FLAG_NAIJA_ENTERVEDHACAVE, 1)
end
end
end

View file

@ -0,0 +1,36 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if getStory()>=10.1 then
if node_isEntityIn(me, getNaija()) then
if isFlag(FLAG_NAIJA_LEAVESVEDHA,0) then
voice("naija_leavesvedha")
setFlag(FLAG_NAIJA_LEAVESVEDHA, 1)
setStory(11)
end
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_NAIJA_MINIMAP, 0) then
if node_isEntityIn(me, getNaija()) then
voice("naija_minimap")
setFlag(FLAG_NAIJA_MINIMAP, 1)
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_NAIJA_SOLIDENERGYBARRIER,0) then
if node_isEntityIn(me, getNaija()) then
voice("naija_solidenergybarrier")
setFlag(FLAG_NAIJA_SOLIDENERGYBARRIER, 1)
end
end
end

View file

@ -0,0 +1,102 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.n = 0
v.n1 = 0
v.n2 = 0
v.n3 = 0
function init(me)
v.n = getNaija()
node_setCursorActivation(me, true)
v.n1 = getNode("N1")
-- monsters
v.n2 = getNode("N2")
v.n3 = getNode("N3")
end
function update(me, dt)
end
function activate(me)
entity_idle(v.n)
shakeCamera(0,0.001)
fade(1,0)
setCameraLerpDelay(0.0001)
cam_toNode(v.n1)
overrideZoom(0.7)
overrideZoom(1, 12)
fade(0, 4)
watch(4)
watch(4)
fade(1, 4)
watch(4)
cam_toNode(v.n2)
watch(2)
shakeCamera(2, 200)
fade(0, 0.1) watch(0.1)
fade(1, 0.1) watch(0.1)
fade(0, 0.1) watch(0.1)
fade(1, 0.1) watch(0.1)
watch(0.5)
fade(0, 0.1) watch(0.1)
watch(1)
fade(1, 0.2) watch(0.2)
cam_toNode(v.n3)
fade(0, 0.1) watch(0.1)
fade(1, 0.1) watch(0.1)
fade(0, 0.1) watch(0.1)
fade(1, 0.1) watch(0.1)
watch(0.5)
fade(0, 0.1) watch(0.1)
watch(1)
fade(1, 0.2) watch(0.2)
setCameraLerpDelay(0)
fade(0,1)
cam_toEntity(v.n)
shakeCamera(0,0.001)
overrideZoom(0)
end

View file

@ -0,0 +1,37 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
function init(me)
node_setCursorActivation(me, true)
end
function activate(me)
wnd(1)
txt("WILBUR: Hi, I'm Wilbur the song stone.")
txt("WILBUR: In lieu of actual planning, *I'll* just have to teach you the pull song myself!")
learnSong(4)
voice("naija_pullsong")
wnd(0)
end
function update(me, dt)
end

View file

@ -0,0 +1,55 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.ompo = 0
v.n = 0
v.done = false
function init(me)
v.n = getNaija()
end
function update(me)
if isFlag(FLAG_OMPO, 2) and v.ompo == 0 then
v.ompo = getEntity("Ompo")
end
if not v.done and isFlag(FLAG_OMPO, 2) and node_isEntityIn(me, v.n) then
v.done = true
entity_idle(v.n)
watch(1)
setCameraLerpDelay(0.5)
cam_toEntity(v.ompo)
watch(1)
emote(EMOTE_NAIJAUGH)
watch(1)
entity_offset(v.ompo, 0, -32, 0.1, 7, 1)
playSfx("Ompo")
watch(1)
cam_toEntity(v.n)
watch(2)
emote(EMOTE_NAIJASADSIGH)
watch(1)
setCameraLerpDelay(0)
end
end

View file

@ -0,0 +1,40 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.slow = false
function init(me)
--node_setCursorActivation(me, true)
end
function update(me)
if node_isEntityIn(me, getNaija()) then
if not v.slow then
setGameSpeed(0.5, 0.2)
v.slow = true
end
else
if v.slow then
setGameSpeed(1, 0.2)
v.slow = false
end
end
end

View file

@ -0,0 +1,32 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
function init(me)
end
function songNote(me)
debugLog("Song note!")
end
function songNoteDone(me, note, len)
debugLog(string.format("note [%d] lasted for %f secs", note, len))
--debugLog("here!")
end

View file

@ -0,0 +1,35 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.spawnTimer = 0
function init(me)
v.spawnTimer = 8 + math.random(4)
end
function update(me, dt)
v.spawnTimer = v.spawnTimer + dt
if v.spawnTimer > 12 then
createEntity("SongSpore", "", node_x(me) + math.random(300)-150, node_y(me))
v.spawnTimer = 0 + math.random(600)/200.0
end
end

View file

@ -0,0 +1,77 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.ompo = 0
v.n = 0
v.doSetFlag = false
local function spawnOnNaija(me)
v.ompo = createEntity("Ompo", "", entity_x(v.n)+10, entity_y(v.n)-16)
end
local function spawnOnNode(me)
debugLog("spawning on nodeee")
v.ompo = createEntity("Ompo", "", node_x(me), node_y(me))
end
function init(me)
v.n = getNaija()
if isMapName("TRAININGCAVE") then
if isFlag(FLAG_OMPO, 0) then
v.doSetFlag = true
spawnOnNode(me)
elseif isFlag(FLAG_OMPO, 1) or isFlag(FLAG_OMPO, 3) then
spawnOnNaija(me)
end
elseif isMapName("MAINAREA") then
if isFlag(FLAG_OMPO, 1) or isFlag(FLAG_OMPO, 3) then
spawnOnNaija(me)
end
elseif isMapName("SONGCAVE") or isMapName("NAIJACAVE") then
if isFlag(FLAG_OMPO, 1) or isFlag(FLAG_OMPO, 3) then
spawnOnNaija(me)
end
elseif isMapName("SONGCAVE02") then
if isFlag(FLAG_OMPO, 2) then
spawnOnNode(me)
elseif isFlag(FLAG_OMPO, 3) then
spawnOnNaija(me)
end
elseif isMapName("VEDHACAVE") then
if isFlag(FLAG_OMPO, 1) or isFlag(FLAG_OMPO, 3) then
spawnOnNaija(me)
end
elseif isMapName("ENERGYTEMPLE01") then
if isFlag(FLAG_OMPO, 3) then
spawnOnNaija(me)
end
end
end
function update(me, dt)
if v.doSetFlag and node_isEntityIn(me, v.n) then
if isFlag(FLAG_OMPO, 0) then
setFlag(FLAG_OMPO, 1)
end
end
end

View file

@ -0,0 +1,43 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.n = 0
function init(me)
end
function update(me, dt)
if v.n == 0 then
v.n = getNaija()
end
if node_isEntityIn(me, v.n) then
entity_damage(v.n, 0, 0.5)
local nx, ny = getWallNormal(node_x(me), node_y(me))
if not(nx == 0 and ny == 0) then
nx, ny = vector_setLength(nx, ny, 800)
--entity_push(v.n, nx, ny, 0.25)
entity_addVel(v.n, nx, ny)
end
end
end

View file

@ -0,0 +1,65 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.spawned = false
v.dad = 0
v.mom = 0
v.door = 0
v.didInit = false
function init(me)
v.door = node_getNearestEntity(me, "EnergyDoor")
v.dad = getEntity("SunkenDad")
v.mom = getEntity("SunkenMom")
if isFlag(FLAG_SUNKENCITY_BOSS, 1) then
entity_delete(v.dad)
entity_delete(v.mom)
return
end
end
function doInit(me)
--debugLog("Setting door to opened")
entity_setState(v.door, STATE_OPENED)
end
function update(me, dt)
if not v.didInit then
doInit(me)
v.didInit = true
end
if isFlag(FLAG_SUNKENCITY_BOSS, 1) then
return
end
if entity_isState(v.dad, STATE_DEATHSCENE) then
setFlag(FLAG_SUNKENCITY_BOSS, 1)
entity_setState(v.door, STATE_OPEN)
end
if not v.spawned then
if node_isEntityIn(me, getNaija()) then
entity_setState(v.dad, STATE_START)
entity_setState(v.mom, STATE_START)
entity_setState(v.door, STATE_CLOSE)
v.spawned = true
end
end
end

View file

@ -0,0 +1,51 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
node_setCursorActivation(me, true)
end
function activate(me)
local n = getNaija()
local node_bg = node_getNearestNode(me, "BG")
local node_bgExit = node_getNearestNode(me, "BGEXIT")
local sx, sy = entity_getScale(n)
entity_switchLayer(n, -3)
entity_scale(n, sx*0.5, sy*0.5, 1.5)
entity_swimToNode(n, node_bg)
entity_watchForPath(n)
overrideZoom(0.5, 2)
watch(0.5)
while (not isLeftMouse()) and (not isRightMouse()) do
watch(FRAME_TIME)
end
entity_scale(n, sx, sy, 1)
overrideZoom(1, 1)
entity_swimToNode(n, node_bgExit)
entity_watchForPath(n)
entity_switchLayer(n, 0)
--entity_idle(n)
overrideZoom(0)
end
function update(me, dt)
end

View file

@ -0,0 +1,39 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
node_setCursorActivation(me, false)
end
function song(me, song)
end
function update(me, dt)
if entity_x(getNaija()) < node_x(me) and entity_y(getNaija()) > node_y(me)-400 then
if getStory() < 8 then
setStory(8)
wnd(1)
txt("Naija: Looks like I just beat the boss. Oh SNAP.")
wnd(0)
end
end
end

View file

@ -0,0 +1,32 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function activate(me)
msg("WHEEL ACTIVATED!")
setWaterLevel(entity_y(getNaija()), 2)
end
function update(me, dt)
end

View file

@ -0,0 +1,53 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
node_setCursorActivation(me, true)
end
function update(me, dt)
end
function activate(me)
local n = getNaija()
entity_idle(n)
entity_swimToNode(n, me)
entity_watchForPath(n)
entity_animate(n, "sitThrone")
overrideZoom(0.5, 2)
watch(2)
while (not isLeftMouse()) and (not isRightMouse()) do
watch(FRAME_TIME)
end
entity_idle(n)
entity_addVel(n, 0, -200)
overrideZoom(1, 1)
watch(1)
overrideZoom(0)
end

View file

@ -0,0 +1,52 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
vedha = 0
drask = 0
sharan = 0
teira = 0
drask_route = 0
function init(me)
if getStory() <= 10 then
vedha = createEntity("Vedha")
entity_warpToNode(vedha, getNode("LOBBY"))
--[[
drask = createEntity("ChildDrask")
entity_warpToNode(drask, getNode("DRASK1"))
teira = createEntity("ChildTeira")
entity_warpToNode(teira, getNode("TEIRA1"))
sharan = createEntity("ChildSharan")
entity_warpToNode(sharan, getNode("SHARAN1"))
]]--
end
end
function activate(me)
end
function update(me, dt)
end

View file

@ -0,0 +1,38 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
function init(me)
end
function update(me, dt)
if isFlag(FLAG_VISION_ENERGYTEMPLE, 0) then
if node_isEntityIn(me, getNaija()) then
setFlag(FLAG_VISION_ENERGYTEMPLE, 1)
vision("EnergyTemple", 3)
playMusic("OpenWaters")
setMusicToPlay("OpenWaters")
voice("Naija_FirstVision")
end
end
end

View file

@ -0,0 +1,33 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
v.oldWaterLevel = 0
v.waterLevelCounter = 0
function init(me)
v.oldWaterLevel = getWaterLevel()
end
function update(me, dt)
-- lower the water
v.waterLevelCounter = v.waterLevelCounter + 100*dt
setWaterLevel(v.oldWaterLevel + v.waterLevelCounter)
end

View file

@ -0,0 +1,32 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
v.orb = 0
function init(me)
if isFlag(FLAG_DEEPWHALE, 2) then
v.orb = getEntity("EnergyOrb")
end
end
function update(me, dt)
end

View file

@ -0,0 +1,37 @@
-- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
-- See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if not v then v = {} end
v.naijain = false
v.n = 0
function init(me)
v.n = getNaija()
end
function update(me)
if node_isEntityIn(me, v.n) and not v.naijain then
overrideZoom(0.5, 1)
v.naijain = true
elseif not node_isEntityIn(me, v.n) and v.naijain then
v.naijain = false
overrideZoom(0, 1)
end
end