Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help (SOLVED) Help! Mementos not working??
bri2ny Offline
Junior Member

Posts: 4
Threads: 2
Joined: Sep 2012
Reputation: 0
#1
Information  (SOLVED) Help! Mementos not working??

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
void OnStart(){SetEntityPlayerInteractCallback("librarydoor_1", "Hint01", true);}

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

In .lang
The upstairs door is locked, I need to find a way around.
(This post was last modified: 09-03-2012, 07:55 PM by bri2ny.)
09-03-2012, 07:39 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#2
RE: Help! Mementos not working??

void Hint01(string &in asEntity)
{
SetMessage("Hints", "Hint01", 3);
AddQuest("Memento1", "Quest1");
}
this highlighted should do it.

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
09-03-2012, 07:49 PM
Find
bri2ny Offline
Junior Member

Posts: 4
Threads: 2
Joined: Sep 2012
Reputation: 0
#3
RE: Help! Mementos not working??

(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!
09-03-2012, 07:54 PM
Find




Users browsing this thread: 1 Guest(s)