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 Error with memento
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Error with memento

You want the memento to be added when you activate the collide callback? To do that, you must move the AddQuest line inside the callback block, like so:

PHP Code: (Select All)
void OnStart()
{
    
//CompleteQuest("memento1", "Quest_Castle1_Text");//Remove this line.
    
AddEntityCollideCallback("Player""MessageScript1""Message1"true1);
}

void Message1(string &in asChildstring &in asParentint alState)
{
    
AddQuest("memento1""Castle1");//Move this here. Also, don't include the Quest_ and _Text parts.
    
SetMessage("Messages""DanielSay1"10); 


That will add the quest once you hit the area. The CompleteQuest script will remove the quest, so only use that when you've finished the task it's hinting to. As I also said, don't use the prefix and suffix for the memento in the script. Only use that in the .lang file.

11-18-2014, 02:34 PM
Find


Messages In This Thread
Error with memento - by MaksoPL - 11-18-2014, 01:12 PM
RE: Error with memento - by FlawlessHappiness - 11-18-2014, 02:01 PM
RE: Error with memento - by Romulator - 11-18-2014, 02:13 PM
RE: Error with memento - by Mudbill - 11-18-2014, 02:34 PM
RE: Error with memento - by MaksoPL - 11-18-2014, 03:46 PM
RE: Error with memento - by Mudbill - 11-18-2014, 04:39 PM
RE: Error with memento - by MaksoPL - 11-18-2014, 04:50 PM
RE: Error with memento - by Mudbill - 11-18-2014, 07:20 PM



Users browsing this thread: 1 Guest(s)