Frictional Games Forum (read-only)
Anyone Need Help? (Thread #2) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: Anyone Need Help? (Thread #2) (/thread-9306.html)

Pages: 1 2 3 4 5


RE: Anyone Need Help? (Thread #2) - xtron - 07-24-2011

nvm the image. Do the key work for you, or is the whole extra_lang f*cked up?


RE: Anyone Need Help? (Thread #2) - JenniferOrange - 07-24-2011

I believe the whole extra_english.lang file has gotten f*cked up.
(with all of my stories..)


RE: Anyone Need Help? (Thread #2) - xtron - 07-24-2011

all!? wtf O_O.

Try deleting all of the stories except your infected demo and use this extra_lang

Change to your benefit.
Code:
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">story description</Entry>
</CATEGORY>

<CATEGORY Name="Journal">

</CATEGORY>

<CATEGORY Name="Inventory">

</CATEGORY>

<CATEGORY Name="Levels">

</CATEGORY>

<CATEGORY Name="other">

</CATEGORY>

<CATEGORY Name="Ending">
            <Entry Name="MainCredits"></Entry>
</CATEGORY>

</LANGUAGE>



RE: Anyone Need Help? (Thread #2) - JenniferOrange - 07-24-2011

AND SO IT DISPLAYS! Big Grin Thanks dood.. <3


RE: Anyone Need Help? (Thread #2) - xtron - 07-24-2011

I'm glad it helped Smile


RE: Anyone Need Help? (Thread #2) - JetlinerX - 07-24-2011

Kyle-

http://www.frictionalgames.com/forum/thread-9338-post-83439.html#pid83439

http://www.frictionalgames.com/forum/thread-9259-post-83451.html#pid83451

I am in desperate need of your help D:

I WILL PAY YOU TO BE MY SCRIPTING TEACHER! lol.


RE: Anyone Need Help? (Thread #2) - xtron - 07-24-2011

The best way to learn by is self-teaching.


RE: Anyone Need Help? (Thread #2) - JetlinerX - 07-24-2011

That seems to have been less than un-successful.


RE: Anyone Need Help? (Thread #2) - Kyle - 07-24-2011

Xtron, please let me answer these. It's my thread. Tongue

JetlinerX, I'll build the whole script from scratch that will show that when the player unlocks a door, a monster is set active and once it hits the player, the credits start.

Code:
void OnStart()
{
    AddUseItemCallback("", "Key01", "Door", "Func01", true);
    AddEntityCollideCallback("Player", "MonsterName", "Func02", true, 1);
}
void Func01(string &in asItem, string &in asEntity)
{
    RemoveItem(asItem);
    SetSwingDoorLocked(asEntity, false, true);
    PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
    SetEntityActive("MonsterName", true);
}
void Func02(string &in asParent, string &in asChild, int alState)
{
    SetPlayerHealth(100);
    GivePlayerDamage(100, "Claws", false, false);
    FadeOut(3);
    FadePlayerRollTo(90, 8, 12);
    MovePlayerHeadPos(0, 3, 0, 3, 2.5);
    AddTimer("", 2, Func03);
}
void Func03(string &in asTimer)
{
    StartCredits("18_amb.ogg", true, "Credits", "Text", 5);
}

This may or may not work, I haven't tested it. By all means, you should edit and change some parts to the script to work with your script.


RE: Anyone Need Help? (Thread #2) - JetlinerX - 07-24-2011

Hmmm Alright, I still was unable to get it working Sad

I put the story out, so maybe you can take a look at my scripts and edit them accordingly? If not, thats totally fine Smile