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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with adding mementos/quests.
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#1
Need help with adding mementos/quests.

Ok so here's my script:

.hps
////////////////////////////
// Run when entering map
void OnEnter()
{
        PlayMusic("amb_safe.ogg", true, 0.5, 5, 0, true);
        AddUseItemCallback("", "crowbar", "closet", "KeyOnDoor1", true);
        AddUseItemCallback("", "HallKey", "hall", "KeyOnDoor2", true);
        AddUseItemCallback("", "artroomkey", "artroom", "KeyOnDoor3", true);
        AddUseItemCallback("", "pathwaytolabkey", "pathtolab", "KeyOnDoor4", true);
        SetLevelDoorLockedText("pathtolab", "Doors", "Door_pathtolab_Name");
        AddQuest("readnote","readnote");
        CompleteQuest("readnotecomplete", "readnotecomplete");
}

.lang
        <Entry Name="Quest_readnote_Text">Read the note next to your bed.</Entry>
        <Entry Name="Quest_readnotecomplete_Text">Read the note next to your bed.</Entry>

I got the AddQuest to work (it shows up in my game that i received a memento. However, when i try to delete that memento, it doesnt. Btw i added .hps and .lang just to clarify that its those files, its not in my script.

Any help? Please and thank you.
(This post was last modified: 08-09-2011, 08:16 AM by SonOfLiberty796.)
08-09-2011, 06:09 AM
Find


Messages In This Thread
Need help with adding mementos/quests. - by SonOfLiberty796 - 08-09-2011, 06:09 AM



Users browsing this thread: 1 Guest(s)