This is a sub-page of Swordigo.
Some scene files in Swordigo contain small chunks of code that are not executed in normal gameplay
plains_caveFirst.scene#
The last of two code chunks in this file is placed below the .scl references and not attached to any scene objects, therefore it is not executed.
It looks like it would check if two bats had been killed, then spawn large and small health bottles and open a trapdoor.
function TrapOnKill()
if trapbat1_killed and trapbat2_killed then
Program.Wait(0.5);
SoundLibrary.PlayEffect("surprise2");
Scene.CreateObject("healthbottle_big","healthbottle", Scene.Find("focusArea"));
Program.Wait(0.5);
DoorController.Open(Scene.Find("trapdoor1"));
Camera.ResetFocus();
end
end
thecave_part1421.scene#
This file contains a chest object which would drop the fire trinket and a Sack of XP. At lines 54-57 we see this:
chest_left��chest�m
�ItemDrop�p��^
�item_firetrinket� fftrinket��
�xp_sack��sack1�
plains_woodkeep3.scene#
The final level of the Forgotten Keep contains a mysterious dwarf character with the following code:
local self, target = ...;
if target:identifier() == "hero" then
ShowTextBubble(self:identifier() .. "_bubble", self:position() + Vector3.New(0, 40, 0), "Just hangin' here..");
end
This would display the text "Just hangin' here..." in a text bubble whenever the Character stood next to him.
plains_wood_entrance.scene#
The entrance to the Forgotten Keep from the Plains contains another similar dwarf, who would say "I'll get my revenge! Just need to gather my courage.. .. my courage...".
local self, target = ...;
if target:identifier() == "hero" then
local text = "I'll get my revenge! Just need to gather my courage.. .. my courage...";
Program.Print(text);
ShowTextBubble("npc1_bubble", self:position() + Vector3.New(13, 27, 0), text, target);
end