Frictional Games Forum (read-only)
How to make a hint? - 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: How to make a hint? (/thread-12963.html)



How to make a hint? - TheDanny942 - 01-30-2012

In one part of my custom story, you hear monster, noises, and a monster comes out. I want to make a message go on screen that says something like, "Quick! Find a place to hide!" So I know there is a script function "Give Hint." My real question is how to configure the .lang file for this, I'm assuming the entry goes under journal? Any help is appreciated. Smile



RE: How to make a hint? - Your Computer - 01-30-2012

You can specify the category through the GiveHint function.


RE: How to make a hint? - Shadowfied - 01-30-2012

If you just want a normal message appearing the simplest way would be to use SetMessage.

SetMessage("LangCategoryHere", "LangEntryHere", 0);

LangCategory = Category name in the extra_english.lang file
LangEntry = Entry name in that same category
0 = Time to display. If you put 0 the game will decide automatically how long it will stay on screen depending on how long the message is, which is really awesome.

I use SetMessage for any messages and it's very quick and easy.



RE: How to make a hint? - TheDanny942 - 01-31-2012

Ok guys does this look ok?
.lang file
<CATEGORY Name="Messsage">
<Entry Name="Message_Run_Message">Do not attempt to fight, hide.</Entry>
</CATEGORY>
.hps file
GiveHint ("Run", "Message", "Run", 8);



RE: How to make a hint? - Your Computer - 01-31-2012

(01-31-2012, 02:47 AM)TheDanny942 Wrote: Ok guys does this look ok?

There is no prefix and suffix for GiveHint entries.


RE: How to make a hint? - TheDanny942 - 01-31-2012

(01-31-2012, 03:01 AM)Your Computer Wrote:
(01-31-2012, 02:47 AM)TheDanny942 Wrote: Ok guys does this look ok?

There is no prefix and suffix for GiveHint entries.
Sorry for my noobieness but what do you mean? I mean I know what prefixes and suffixes are, but do you mean like you cannot have them or what? I'm a bit confused sorry.






RE: How to make a hint? - Your Computer - 01-31-2012

(01-31-2012, 03:07 AM)TheDanny942 Wrote: Sorry for my noobieness but what do you mean? I mean I know what prefixes and suffixes are, but do you mean like you cannot have them or what? I'm a bit confused sorry.

I mean, GiveHint("Run", "Message", "Run", 8) implies

Code:
<CATEGORY Name="Message">
<Entry Name="Run">Do not attempt to fight, hide.</Entry>
</CATEGORY>



RE: How to make a hint? - TheDanny942 - 01-31-2012

(01-31-2012, 03:45 AM)Your Computer Wrote:
(01-31-2012, 03:07 AM)TheDanny942 Wrote: Sorry for my noobieness but what do you mean? I mean I know what prefixes and suffixes are, but do you mean like you cannot have them or what? I'm a bit confused sorry.

I mean, GiveHint("Run", "Message", "Run", 8) implies

Code:
<CATEGORY Name="Message">
<Entry Name="Run">Do not attempt to fight, hide.</Entry>
</CATEGORY>
Oh I see! Thanks alot man Smile