SetMessage won't show a 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: SetMessage won't show a message (/thread-25750.html) |
SetMessage won't show a message - burge4150 - 07-25-2014 Trying to do a generic message on a locked door. I've followed the tutorial to the 'T' and no message is displayed when the player interacts with it. I know the .hps file is set up correctly, because the action to use the key on the door to unlock it DOES work. I know the .lang file is set up properly because the description for the key and the game info also works. Here is the .hps and the .lang file, respectively: Spoiler below!
Spoiler below!
The PlayerInteractCallBack on the door field is populated with "StudyIsLocked". The door is named LockedDoor, but that doesn't pertain to this since I have no check to see if the door is actually locked. To troubleshoot, I put the line "SetMessage("Messages", "LockedStudy", 0); " right in the OnStart() function, and still the message didn't display. My issue seems to be with calling the message. Anyone know what's up? RE: SetMessage won't show a message - PutraenusAlivius - 07-25-2014 Code: <CATEGORY Name=“Messages”> You used the wrong quotes at your lang. RE: SetMessage won't show a message - i3670 - 07-25-2014 You have some odd quoation marks “Messages” /// "CustomStoryMain". Try using the ones you've used in CustomStoryMain i.e. " Also dubble-check the names of everything involved in that script. RE: SetMessage won't show a message - burge4150 - 07-25-2014 Whoa holy crap that's weird. I copy pasted that script right from the tutorial, this fixed it but man it's been driving me nuts for over a day. Thanks dudes |