02-22-2012, 05:39 PM
First off, I have a bug with the .lang file, or to more exact, the letter function.
And some bug with one of my maps, it doesent give any crash or typo wrongs.
None of them works, nothing happens when i go inside script area.
Code:
Surviving is the key[br][br]Just survive
Kitchen Key
Key for the Kitchen
Bobby Pin
This item is needed for later
Kitchen
Workplace
Kitchen
The smell of blood and flesh makes this place much worse... [br][br]I just want to get out of here, I can't stand this place
The letter said this place is filled with riddles, and if I want to survive, I have to get through this place.. [br][br] The letter also mentioned this area would be crawling with those things, I don't like the sound of that
The pathway is blocked, maybe I can find something to unblock the path?
The Abduction
[br]Today, I went to work, it was a normal day.
Nothing out of the ordinary..
[br]But later on, I noticed this girl crying in the alley.
I went over to check it out, but it seemed there was nobody there.
[br] I turned around to walk back as I was hit on my head with something hard,
it all went black. [br][br] I woke up in this room, and I am scared, I dont know what to do..
[br]If someone reads this, I suggest you get out of here.
Beware; there are alot of dangers in this place.
And some bug with one of my maps, it doesent give any crash or typo wrongs.
Code:
void Onstart()
{
AddEntityCollideCallback("Player", "lyd_1", "girlcry", true, 1);
AddEntityCollideCallback("Player", "lyd_2", "girlcry1", true, 1);
AddEntityCollideCallback("Player", "lyd_3", "girlcry2", true, 1);
AddEntityCollideCallback("Player", "lyd_4", "activatelookat", true, 1);
SetEntityPlayerLookAtCallback("monster", "ambush", true);
AddEntityCollideCallback("Player", "servant_grunt_1", "backtomansion", true, 0);
}
void girlcry(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_1");
AddTimer("", 3, "girlstopcry");
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_2", 2, 2, "");
SetPlayerActive(false);
}
void girlcry1(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_2");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_3", 2, 2, "");
}
void girlcry2(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_3");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_4", 2, 2, "");
}
void activatelookat(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);
}
void ambush(string &in asEntity, int alState)
{
SetEntityActive("servant_grunt_1", true);
}
void backtomansion(string &in asParent, string &in asChild, int alState)
{
ChangeMap("mansion_1.map", "from_flashback_1", "", "");
PlaySoundAtEntity("", "attack_claw.snt", "", 0, false);
GivePlayerDamage(0, "Claws", true, false);
FadeOut(3);
SetPlayerActive(false);
SetPlayerCrouching(true);
SetEnemyDisableTriggers("servant_grunt_1", false);
}
void StopPlayerLook(string &in asTimer)
{
StopPlayerLookAt();
}
void ResetPlayer(string &in asTimer)
{
SetPlayerActive(true);
}
void girlstopcry(string &in asTimer)
{
StopSound(asTimer, 1.0);
}
void girlcry_1(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_2", 0, false);
}
void girlcry_2(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_3", 0, false);
}
void girlcry_3(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_4", 0, false);
}
void OnEnter()
{
}
void OnLeave()
{
SetupLoadScreen("LoadingText", "Flashback", 0, "");
}
None of them works, nothing happens when i go inside script area.