Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help! D:
Author Message
7thProductions Offline
Junior Member

Posts: 42
Joined: Mar 2012
Reputation: 0
Post: #1
Exclamation I need help! D:

Does anyone see anything wrong with this extra_english.lang file?

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">test</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_storagekey">Storage Key</Entry>
<Entry Name="ItemDesc_storagekey">Tag reads: "Key for the upstairs storage room."</Entry>
</CATEGORY>

<CATEGORY Name="DA01Map01">
<Entry Name="AdrianShock">What...what the hell was that..!?</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
</CATEGORY>

<CATEGORY Name="Levels">
</CATEGORY>

</LANGUAGE>

I've used SetMessage for "DA01Map01" and I've tried entering a custom Name and Description for a key, but nothing shows up in game and there doesn't seem to be any problems with the script.

Script:

void OnStart()
{
PlayMusic("general_rain_m.ogg", true, 1, 0, 1, true);
SetPlayerCrouching(true);
SetPlayerActive(false);
SetPlayerSanity(80.0);
SetPlayerLampOil(0.0);
SetInventoryDisabled(true);
FadeOut(0.0f);
FadeIn(5.0f);
SetPlayerSanity(1);
FadePlayerRollTo(-50, 220, 220);
AddTimer("Adrian_cough", 3, "situp");
AddTimer("Adrian_breath", 6, "situp");
AddTimer("Adrian_cough_2", 8, "situp");
AddTimer("Adrian_situp", 10, "situp");
AddTimer("monster_growl", 20, "scare");
AddTimer("father_scream", 21, "scare");
AddTimer("father_scream_cont", 22.5, "scare");
AddTimer("father_scream_cont_2", 23, "scare");
AddTimer("monster_hit", 25, "scare");
AddTimer("monster_growl_2", 27, "scare");
AddTimer("father_whimper", 28.5, "scare");
AddTimer("father_dies", 31.5, "scare");
AddTimer("father_dies_2", 34, "scare");
AddTimer("father_dies_3", 34.5, "scare");
AddTimer("drag", 35, "scare");
AddTimer("monster_leaves", 38, "scare");
AddTimer("endscare", 39.5, "scare");
}
void situp(string &in asTimer)
{
string x = asTimer;
if (x == "Adrian_cough")
{
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
FadeOut(3);
}

else if (x == "Adrian_breath")
{
FadeIn(3);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
}

else if (x == "Adrian_cough_2")
{
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
FadeOut(3);
}

else if (x == "Adrian_situp")
{
FadeIn(3);
SetPlayerActive(true);
SetInventoryDisabled(false);
GiveSanityBoost();
FadePlayerRollTo(0, 33, 50);
}
}
void scare(string &in asTimer)
{
string x = asTimer;
if (x == "monster_growl")
{
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
PlaySoundAtEntity("", "amb_alert.snt", "Player", 0, false);
StartPlayerLookAt("ScriptArea_1", 5, 50, "");
}

else if (x == "father_scream")
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
PlaySoundAtEntity("", "29_scream.snt", "Player", 0, false);
}

else if (x == "father_scream_cont")
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
}

else if (x == "father_scream_cont_2")
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
}

else if (x == "monster_hit")
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
}

else if (x == "monster_growl_2")
{
PlaySoundAtEntity("", "amb_alert.snt", "Player", 0, false);
}

else if (x == "father_whimper")
{
PlaySoundAtEntity("", "15_prisoner_beg.snt", "Player", 0, false);
}

else if (x == "father_dies")
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
PlaySoundAtEntity("", "15_prisoner_scream.snt", "Player", 0, false);
}

else if (x == "father_dies_2")
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
PlaySoundAtEntity("", "15_prisoner_death.snt", "Player", 0, false);
}

else if (x == "father_dies_3")
{
StopPlayerLookAt();
PlaySoundAtEntity("", "scare_thump.snt", "Player", 0, false);
StartPlayerLookAt("ScriptArea_2", 1, 50, "");
}

else if (x == "drag")
{
PlaySoundAtEntity("", "15_drag_body.snt", "Player", 0, false);
}

else if (x == "monster_leaves")
{
PlaySoundAtEntity("", "door_level_wood_open.snt", "Player", 0, false);
}

else if (x == "endscare")
{
StopPlayerLookAt();
SetMessage("DA01Map01", "AdrianShock", 0);
}
}

I've had this problem for quite some time now and I can't (nor can anyone else) figure out what is wrong..I'm really excited about working on my first custom story, but this issue is a real setback and I'm in desperate need of an answer. :/
(This post was last modified: 04-14-2012 01:11 PM by 7thProductions.)
04-13-2012 12:19 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
I need help! D: - 7thProductions - 04-13-2012 12:19 AM
RE: I need help! D: - Cranky Old Man - 04-13-2012, 12:30 AM
RE: I need help! D: - 7thProductions - 04-13-2012, 12:54 AM
RE: I need help! D: - Cranky Old Man - 04-13-2012, 01:37 AM
RE: I need help! D: - 7thProductions - 04-14-2012, 12:32 PM
RE: I need help! D: - Datguy5 - 04-14-2012, 12:41 PM
RE: I need help! D: - 7thProductions - 04-14-2012, 01:10 PM
RE: I need help! D: - Datguy5 - 04-14-2012, 01:23 PM
RE: I need help! D: - Putmalk - 04-13-2012, 01:51 AM



User(s) browsing this thread: 1 Guest(s)