Okay a real problem now.
I added a few scripts to my first map, and now I get
Unexpected End of File (63, 2)
void OnStart()
{
AddUseItemCallback("", "key_tower_1", "level_wood_1", "UseKeyOnDoor", true);
wakeUp();
AddEntityCollideCallback("", "Player", "friends", "completequest", true);
SetEntityPlayerInteractCallback("Archives", "Locked", true);
AddEntityCollideCallback("", "Player", "friends_1", "micheal", true);
}
void wakeUp () {
StartPlayerLookAt("level_wood_1", 11.0f, 11.0f, "");
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 16.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}
void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
StopPlayerLookAt();
AddQuest("friendsquest", "FriendsQuest");
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked(level_wood_1", false);
PlaySoundAtEntity("", "unlock_door", "level_wood_1", 0, false);
RemoveItem("key_tower_1");
CompleteQuest("lockedlvl");
}
void completequest(string &in asEntity)
{
CompleteQuest("friendsquest");
SetMessage("Messages", "A", 7.0f);
GiveSanityDamage(10.0f, true);
PlayGuiSound("react_pant4.ogg", 1.0f);
}
void Locked(string &in asEntity)
{
AddQuest("lockedlvl", "LockedLvl");
SetMessage("Messages", "G", 7.0f);
}
void micheal(string &in asEntity)
{
SetMessage("Messages", "B", 7.0f);
GiveSanityDamage(10.0f, true);
PlayGuiSound("react_scare5.ogg", 1.0f);
}
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.