Well i did a small story with 5 maps, map 4 and 5 arnt finished. But now i decided to do another story for a house. But until im happy with the 1st map of the house then i wont finish the other 5 maps. I was plannign on doind 10 maps for the 1st story... i know alot. But i just cant be bothered right now and im not good at scripting so my levels lack cool puzzles.
Heres my scripts for the house map so far. All text scripts dont work, rest work. Infact i will show you only 2 of the text scripts in the lang file.
Code:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddEntityCollideCallback("Player", "playsound", "PlaySound", true, 0);
AddEntityCollideCallback("Player", "Example", "CollideRoomThree", true, 1);
AddEntityCollideCallback("Player", "Example2", "CollideRoomFour", true, 1);
AddEntityCollideCallback("Player", "Example3", "CollideRoomFive", true, 1);
AddEntityCollideCallback("Player", "Example4", "CollideRoomFive1", true, 1);
AddEntityCollideCallback("Player", "Example5", "CollideRoomFive2", true, 1);
AddEntityCollideCallback("Player", "Example6", "CollideRoomFive3", true, 1);
AddEntityCollideCallback("Player", "Example7", "CollideRoomFive4", true, 1);
AddEntityCollideCallback("Player", "Example8", "CollideRoomFive5", true, 1);
AddEntityCollideCallback("Player", "Example9", "CollideRoomFive6", true, 1);
AddEntityCollideCallback("Player", "Example10", "CollideRoomFive7", true, 1);
AddEntityCollideCallback("Player", "Example11", "CollideRoomFive8", true, 1);
AddEntityCollideCallback("Player", "Example12", "CollideRoomFive9", true, 1);
AddEntityCollideCallback("Player", "Example13", "CollideRoomFive10", true, 1);
AddEntityCollideCallback("Player", "Example14", "CollideRoomFive11", true, 1);
AddEntityCollideCallback("Player", "playsound", "PlaySound", true, 0);
AddEntityCollideCallback("Player", "Example15", "CollideRoomFive12", true, 1);
AddEntityCollideCallback("Player", "Example17", "CollideRoomFive13", true, 1);
AddEntityCollideCallback("Player", "Example18", "CollideRoomFive14", true, 1);
AddEntityCollideCallback("Player", "Example19", "CollideRoomFive15", true, 1);
AddEntityCollideCallback("Player", "Example20", "CollideRoomFive16", true, 1);
AddEntityCollideCallback("Player", "Example21", "CollideRoomFive17", true, 1);
AddEntityCollideCallback("Player", "Example22", "CollideRoomFive18", true, 1);
AddEntityCollideCallback("Player", "Example23", "CollideRoomFive19", true, 1);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_3", true, true);
GiveSanityDamage(15, true);
}
void CollideRoomThree(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example", "Entry1", 7);
}
void CollideRoomFour(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example2", "Entry2", 7);
}
void CollideRoomFive(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example3", "Entry3", 5);
}
void CollideRoomFive1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example4", "Entry4", 5);
}
void CollideRoomFive2(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example5", "Entry5", 5);
}
void CollideRoomFive3(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example6", "Entry6", 5);
}
void CollideRoomFive4(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example7", "Entry7", 5);
}
void CollideRoomFive5(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example8", "Entry8", 5);
}
void CollideRoomFive6(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example9", "Entry9", 5);
}
void CollideRoomFive7(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example10", "Entry10", 5);
}
void CollideRoomFive8(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example11", "Entry11", 5);
}
void CollideRoomFive9(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example12", "Entry12", 5);
}
void CollideRoomFive10(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example13", "Entry13", 5);
}
void CollideRoomFive11(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example14", "Entry14", 5);
}
void CollideRoomFive12(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example15", "Entry15", 5);
}
void CollideRoomFive13(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example17", "Entry17", 5);
}
void CollideRoomFive14(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example18", "Entry18", 5);
}
void CollideRoomFive15(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example19", "Entry19", 5);
}
void CollideRoomFive16(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example20", "Entry20", 5);
}
void CollideRoomFive17(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example21", "Entry21", 5);
}
void CollideRoomFive18(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example22", "Entry22", 5);
}
void CollideRoomFive19(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example23", "Entry23", 5);
}
void PlaySound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("break_glass_bottle.snt", "break_glass_bottle.snt" , "Player", 0, false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
I must have done somethign wrong, otherwise im screwed...