Re: Sphere 1.5 vs miniSphere
Reply #58 –
Now here's one I don't understand...
In miniSphere it functions. In Sphere 1.5, on touching the triforce it just pauses and warps the player outside the level...
Triforce 'On Touch'
LVL1C = true;
CollectTriforce();
QueuePersonScript("Triforce", "LevelComplete(119, 87, D3)", false);
function CollectTriforce();
{
DetachInput(MainChar);
Foo("Triforce", 127, 71, "north", 0); //Fooing again
ClearPersonQueue(MainChar);
Foo(MainChar, 127, 92, "collect", 0); //always with the Fooing
PlaySound("ItemCollected.ogg"); //To be changed to something more appropriate for the Triforce later
}
function LevelComplete(x, y, map);
{
Delay(1500); // adjust for future sound file length
DestroyPerson("Triforce");
AttachInput(MainChar);
FancyWarp(x, y, "south", map, 1500); //I think this came from sphere.chm. Nothing actually fancy just FadeOut() & FadeIn().
}
There are no ifs, no switch, no anything. The code is just straight forward commands.
"I am to misbehave." - Malcom Renyolds, Captain of Serenity