How to make Subtitles? - 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 Subtitles? (/thread-10771.html) |
How to make Subtitles? - FreshKorruption - 10-15-2011 Does anybody know the exact scripting so that when you get to an area in your custom map, it says Press F to use your lantern. RE: How to make Subtitles? - schmupper - 10-15-2011 I could Give you a hint, but nah... RE: How to make Subtitles? - Statyk - 10-15-2011 (10-15-2011, 06:57 PM)schmupper Wrote: I could Give you a hint, but nah... That reply was a win. =P If you don't understand it, the comment is: void GiveHint (string& asName, string& asMessageCat, string& asMessageEntry, float afTimeShown); Displays a hint on the player's screen. asName - the internal name asMessageCat - the category in the .lang file asMessageEntry - the entry in the .lang file afTimeShown - time in seconds until the message disappears. If time is ⇐ 0 then the life time is calculated based on string length. RE: How to make Subtitles? - FreshKorruption - 10-15-2011 I don't understand some of this. In my hps file do i just put it anywhere and do i include void. And I don't know the category name of it or the entry. And where is the spot where i put in the name of my area. RE: How to make Subtitles? - GreyFox - 10-15-2011 So you want it where you walk into a certain area and says Press F for Latern, Something like this { AddEntityCollideCallback("Player" "ScriptAreaName", "MyFunc", true, 1); } void MyFunc(string &in asParent, string &in asChild, int alState) { GiveHint ("LanternHint", "Hint", "LanternHint", 5); } *Note that you will need to change some names because your extra english.lang file maybe different. RE: How to make Subtitles? - FreshKorruption - 10-15-2011 I can't get it working. Please tell me what im doing wrong. Here is my extra_english.lang and .hps file. RE: How to make Subtitles? - GreyFox - 10-15-2011 try using these (just copy and paste them and replace them, I just removed the unneeded spaces and such) Code: <LANGUAGE> Code: //////////////////////////// -Grey Fox |