Frictional Games Forum (read-only)
noob needs help with 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: noob needs help with script ;/ (/thread-6109.html)



noob needs help with script ;/ - sassix - 01-08-2011

hey there , well im new to the editor and i got a problem. ( sry my english isnt that good so i hope u can understand me )

I saw somewhere a script for adding something in the journal and wanted to test it.

Thats what i write in my .hps
////
void OnStart()
{
FadeOut(0);
FadeIn(20);
AddQuest("test","test");
}
///

thats what i write in mybase_german.lang
///
<LANGUAGE>
<CATEGORY Name="Journal">
<Entry Name="Quest_test_Text">maaaaaaaaaaaaaaan.</Entry>
</CATEGORY>
</LANGUAGE>
///

Well, i dont know whats my problem here, but the quest text is added to my journal but the text dont appear , just " - " and not the text i want to :/
hope u guys can help me ._.


@edit

I added a picture so u can see how it looks if u dont understand <.<


RE: noob needs help with script ;/ - Frontcannon - 01-08-2011

Wrong .lang.

You create your own in your Custom Stories map folder, name it 'extra_english.lang' or 'extra_german.lang'. Then use the game langs as templates so you know how it is structured.

.langs sind ziemlich schlecht dokumentiert im Wiki, da muss jeder durch :/

By the way: .langs do NOT work in debug mode. You've got to start your Custom Story over the ingame menu for testing them out.


RE: noob needs help with script ;/ - sassix - 01-08-2011

ok thx, hat sich erledigt Big Grin





CLOSED