Frictional Games Forum (read-only)

Full Version: (SOLVED) Help! Mementos not working??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My scripting is set to popup a text on the screen plus add a memento after the player has interacted with a locked door...but every time I run the game in dev_ the text on the screen appears though the memento entry is just "-". Here is my scripting for just the two functions:

In HPS
Code:
void OnStart(){SetEntityPlayerInteractCallback("librarydoor_1", "Hint01", true);}

void Hint01(string &in asEntity){SetMessage("Hints", "Hint01", 3);    AddQuest("Memento1", "Quest_Quest1_Text");}

In .lang
Code:
The upstairs door is locked, I need to find a way around.
void Hint01(string &in asEntity)
{
SetMessage("Hints", "Hint01", 3);
AddQuest("Memento1", "Quest1");
}
this highlighted should do it.
(09-03-2012, 07:49 PM)Steve Wrote: [ -> ]void Hint01(string &in asEntity)
{
SetMessage("Hints", "Hint01", 3);
AddQuest("Memento1", "Quest1");
}
this highlighted should do it.
Ah crap, now I feel dumb...I guess the Engine scripts wiki confused me under "AddQuest" when it said "asNameAndTextEntry - entry in the .lang file. Must start with “Quest_<texthere>_Text”, and be in category “Journal”!" Sorry about that Blush
Thanks!