Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange map glitch !?
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#8
RE: Strange map glitch !?

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.

Please help me with my script problems !


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.

<LANGUAGE>
  <CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">The House.[br][br] Dont believe yoru safe </Entry>
  </CATEGORY>

  <CATEGORY Name="Journal">
    <Entry Name="Note_MYNOTE_Name"> Diary 1</Entry>
    <Entry Name="Note_MYNOTE_Text">Day 42 - I am beginning to lose it. I feel like i have been trapped here forever. I'm no longer safe, i've locked myself and one of those things which managed to get in, luckily for me their not so clever. I'm going to do something i may regret but its my only hope of getting out of here. Daniel make your way to the Inner Sanctum, Hurry!</Entry>
  </CATEGORY>

  <CATEGORY Name="Example">
    <Entry Name="Entry1"> Peeyu that smells rotten. Why did no one clean that up.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example2">
    <Entry Name="Entry2"> Wawl... this place looks beutiful.
    </Entry>



Hps file now (below)

////////////////////////////
// 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...
11-12-2010, 01:20 PM
Find


Messages In This Thread
Strange map glitch !? - by LoneWolf - 11-11-2010, 10:08 PM
RE: Strange map glitch !? - by Gamemakingdude - 11-11-2010, 10:39 PM
RE: Strange map glitch !? - by LoneWolf - 11-11-2010, 10:48 PM
RE: Strange map glitch !? - by Gamemakingdude - 11-11-2010, 10:55 PM
RE: Strange map glitch !? - by LoneWolf - 11-11-2010, 11:13 PM
RE: Strange map glitch !? - by Gamemakingdude - 11-11-2010, 11:16 PM
RE: Strange map glitch !? - by Kyle - 11-12-2010, 03:34 AM
RE: Strange map glitch !? - by LoneWolf - 11-12-2010, 01:20 PM
RE: Strange map glitch !? - by Hooumeri - 11-12-2010, 03:21 PM
RE: Strange map glitch !? - by LoneWolf - 11-12-2010, 04:13 PM
RE: Strange map glitch !? - by LoneWolf - 11-14-2010, 01:36 PM
RE: Strange map glitch !? - by Chilton - 11-14-2010, 01:39 PM
RE: Strange map glitch !? - by LoneWolf - 11-15-2010, 10:49 AM
RE: Strange map glitch !? - by Hooumeri - 11-15-2010, 01:57 PM
RE: Strange map glitch !? - by LoneWolf - 11-15-2010, 02:47 PM
RE: Strange map glitch !? - by house - 11-17-2010, 03:28 AM
RE: Strange map glitch !? - by LoneWolf - 11-18-2010, 06:00 PM



Users browsing this thread: 5 Guest(s)