![]() |
Message - 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: Message (/thread-6440.html) |
Message - Sudden - 01-31-2011 I can't get a message to show up. this is in my .hps file void OnEnter() { } void Interactmansion_3(string &in asEntity) { SetMessage("message", "mansion_3", 0); AddTimer(asEntity, 1.0f, "TimerDoorMessageOnAgain"); } void OnLeave() { } And this is in my .lang file <LANGUAGE> <RESOURCES /> <CATEGORY Name="message"> <Entry Name="mansion_3">It's locked. Where is that key?</Entry> </CATEGORY> </LANGUAGE> What have i done wrong? RE: Message - Som1Lse - 01-31-2011 Try this: (untested) Code: void OnStart() RE: Message - Sudden - 01-31-2011 Nope.. it didn't work :/ RE: Message - Frontcannon - 01-31-2011 The .lang files aren't loaded when in debug mode. You have to launch the custom story through the menu for notes, diaries etc to work. RE: Message - Sudden - 01-31-2011 i am but it still doesn't work :/ RE: Message - Frontcannon - 01-31-2011 Looks like you're screwed. RE: Message - Vradcly - 02-01-2011 I have noticed that the things in () after a function is different in different interactions, collide callbacks have for example: void Collide_ScareArea_2(string &in asParent, string &in asChild, int alState) and timers only have TimerStopLook(string &in asTimer) In your code I see you have only Interactmansion_3(string &in asEntity), maby changeing too (string &in asEntity, int alState) or something like that could help. I think you do best to look that up in the Script functions page (http://wiki.frictionalgames.com/hpl2/amnesia/script_functions). Im not sure witch one to use since I don't know what kind of function Interactmansion_3 is, just saw that its only one parameter inside your (), and I cant recall ever using only one...[/align] RE: Message - Som1Lse - 02-01-2011 I think the function parameters are fine. No he is missing his callback: Code: void OnStart() @2below: Whoops, I failed. *fixed* RE: Message - Sudden - 02-01-2011 Still not working :S RE: Message - Oscar House - 02-01-2011 Remember to check for typos, Someone else: SetEntityPlayerInteractCallback("mainsion_3", "Interactmansion_3", true); Sudden, try taking the excess i away and try again. |