Frictional Games Forum (read-only)
[SCRIPT] :( - 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)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] :( (/thread-25205.html)

Pages: 1 2 3


:( - Straxedix - 05-03-2014

I have this

.hps

void OnStart()
{
SetPlayerLampOil(0);
SetPlayerHealth(5);
SetPlayerSanity(70);
SetPlayerRunSpeedMul(0);
wakeUp();
}

void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetMessage("Ch01Level01", "WakeUpMessage", 5);
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(true);
FadeImageTrailTo(0,1);
}


and .lang


<CATEGORY Name="Ch01Level01">
<Entry Name="WakeUpMessage">Where am i ? What happened? I feel... nothing.</Entry>
</CATEGORY>


by the friend who help me but it's not working for some reason...
any ideas ?
It should when he stands to text comes.


RE: :( - Romulator - 05-03-2014

Is this your whole code and your whole lang file?


RE: :( - DnALANGE - 05-03-2014

i dont see anything wrong here.
Does your script work ( void beginStory(string &in asTimer) )
Do the other functions work? ( seems they are fine )
I think you have misplaced something in the .english.
Please send over your entire .english
-
Here is a hint do it into a SPOILER LIKE THIS.
Spoiler below!
Copy your tekst in here like this, so it is easyer to read and saves a LOT of space on the forum page.. ; [spooiler] Tekst here, Do this with 1 o -> spoiler. [/spooiler]



RE: :( - OriginalUsername - 05-03-2014

you have a couple (For example: 1.6) numbers without an f after it. Also, 0.0? I don't know if that's your problem, but you could check it out.


RE: :( - Mudbill - 05-03-2014

What is not working? Is it crashing? Is it not doing anything? Any crash message/log?


RE: :( - FlawlessHappiness - 05-03-2014

Try calling it something else than Ch01Level01.
Maybe that name is already in use.


RE: :( - Straxedix - 05-03-2014

No it's not in use
ugh problem is no show text
only that

[spooiler]This works ?[/spooiler]

And no it's not the whole lang but hps is

I wonder why not working it is all right ?

It should when stands to come text but it just don't Sad


RE: :( - DnALANGE - 05-03-2014

The spooiler thing.
What i said, do it with 1 o . so like this : spoiler, not like this : spooiler Wink
[s.p.o.i.l.e.r]REMOVE THE DOTS[/s.p.o.i.le.r]
---
About the story..
Can you send your entire script and english file?
Please do it in the spoiler tags.


RE: :( - Straxedix - 05-03-2014

Ok

Spoiler below!
void OnStart()
{
SetPlayerLampOil(0);
SetPlayerHealth(5);
SetPlayerSanity(70);
SetPlayerRunSpeedMul(0);
wakeUp();
}

void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetMessage("Ch01Level01", "WakeUpMessage", 5);
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(true);
FadeImageTrailTo(0,1);
}


and .lang

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Hello Player,[br]You Entered into forbidden Forest with your friends.[br]Then you got hit into head from back by unknown creature,your friends run...Maybe for help maybe they RUN AWAY![br]You are still alive but you don't remember anything![br]My first custom story by Straxedix[br]play with headphones and lights off for better FUN!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">

<CATEGORY Name="TextCategory">
<Entry Name="TextEntry">Where am i ? What happened?</Entry>
</CATEGORY>

<CATEGORY Name="Ch01Level01">
<Entry Name="WakeUpMessage">Where am i ? What happened? I feel... nothing.</Entry>
</CATEGORY>

<CATEGORY Name="Place">
<Entry Name="Wake">What is this place i know it from somewhere...Like i was already here.</Entry>
</CATEGORY>

<CATEGORY Name="DeathHint1">
<Entry Name="Entry2">Careful[br]And be ready.</Entry>
</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="test1">Where am i ? I know this place from my...Nightmares!</Entry>
</CATEGORY>
/////////////////////////////////////////////////////////////////////////////////
//------------------------------------Notes------------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<Entry Name="Note_NoteStranger_Name">Note from Stranger</Entry>
<Entry Name="Note_NoteStranger_Text">Hello.[br][br][br]You don't know me, but I certaintly know you.[br][br]But don't worry we will meet!</Entry>

/////////////////////////////////////////////////////////////////////////////////
//-----------------------------------Diaries-----------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<Entry Name="Diary_diary1_Name">End of the World</Entry>
<Entry Name="Diary_diary1_Text">21 December, 2012[br][br][br]The ground is literally shaking beneath my feat.</Entry>

/////////////////////////////////////////////////////////////////////////////////
//-----------------------------------Mementos----------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<Entry Name="Quest_memento1_Text">Perhaps I should go the other way.</Entry>

<Entry Name="Note_voice_Name">Welcome!</Entry>
<Entry Name="Note_voice_Text">Hello.[br] [br] [br]im stuck in here i don't remember anything please help me![br][br]Find me PLEASE!!![br][br]I remmember just a hit in head and fog</Entry>

</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//----------------------------Item Names/Descriptions--------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">A Key</Entry>
<Entry Name="ItemDesc_key1">It's for unlocking a door.</Entry>

<Entry Name="ItemName_Key1234">Key for Room</Entry>
<Entry Name="ItemDesc_Key1234">It unlocks the door of room.</Entry>

<Entry Name="ItemName_Extreme1">Key for Some Door</Entry>
<Entry Name="ItemDesc_Extreme1">It unlocks the door somewhere.</Entry>

<Entry Name="ItemName_Extreme2">The Key</Entry>
<Entry Name="ItemDesc_Extreme2">It's a key</Entry>

<Entry Name="ItemName_Torture1">The Lost Key</Entry>
<Entry Name="ItemDesc_Torture1">It's a lost key of this HOUSE!</Entry>

<Entry Name="ItemName_Blah">The Key</Entry>
<Entry Name="ItemDesc_Blah">It's a key!</Entry>

<Entry Name="ItemName_Blah1">The key</Entry>
<Entry Name="ItemDesc_Blah1">It's a heavy key maybe it unlocks a that black door!</Entry>


</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//------------------------------------Signs------------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="Sign">
<Entry Name="Entry1">Study Room</Entry>
</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//------------------------------------Levels-----------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="Levels">
<Entry Name="Entry1">Main Hall</Entry>
</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//----------------------------------Death Hints--------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="DeathHint">
<Entry Name="Entry1">You have to cary on...</Entry>
</CATEGORY>
</LANGUAGE>



RE: :( - DnALANGE - 05-03-2014

This looks perfect.
Nice done with the spoiler tag.
Way better and saves space on the tread.
We are on the problem now.