The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Adding Mementos help?
taylor122002 Offline
Junior Member

Posts: 13
Threads: 10
Joined: Aug 2012
Reputation: 0
#1
Adding Mementos help?

Hello everybody!
I have a scripting question, and many more in the future, unless I can figure them out. But I need help right now on adding Mementos to the journal. A friend of mine is working on a scripting project, and they're on Chapter 5 of their project, and I haven't even started. Although, their scripting is different than mine.

Anyways, I'm trying to actually make a custom story, with at least, well hoping, 3 chapters. And I just started, but I don't know how to add the mementos. Could someone help view my scripting I have and see what I did wrong? Or maybe it's just because I didn't add the other scripting area in which the "Quest" memento disappears, like as in you completed that quest.

In my .lang file, I have this:

<CATEGORY Name="Journal">
<Entry Name="Quest_NoticeQuest_Text">It's too dark, I better move low and fast</Entry>
</CATEGORY>

As the "Quest" area is named "Notice_Quest_Area".
I don't think there is anything wrong with the .lang file, as I've had trouble in the past where if I mess up on the .lang file, I lose everything. That hasn't happened yet, so I think that's good..

Now the .hps file:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Notice_Quest_Area", "GetNoticeQuest", true, 1);
}

void GetNoticeQuest(string &in asEntity, int alState)
{
AddQuest("getnoticequest", "GetNoticeQuest");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


I'm positive I did something wrong here, I tried watching a video of this, and the part where it says
"AddQuest("getnoticequest", "GetNoticeQuest");", in the video they put down this function, except changed everything with their own stuff.
"AddQuest("namequest", "NameQuest");
so I thought I'd do the same with me, except when I run into the quest area where you would get the memento, nothing happens.

Sorry, I'm very new to this, so I don't understand what I'm supposed to do with this. I only know how to add journal entries and make keys unlock doors. Any help would be appreciated, and I thank everyone who replies in advanced!
09-24-2012, 05:08 AM
Find


Messages In This Thread
Adding Mementos help? - by taylor122002 - 09-24-2012, 05:08 AM
RE: Adding Mementos help? - by Adny - 09-24-2012, 05:15 AM



Users browsing this thread: 2 Guest(s)