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
Scripting help needed
Jovismcp Offline
Junior Member

Posts: 6
Threads: 1
Joined: Jul 2011
Reputation: 0
#7
RE: Scripting help needed

(07-17-2011, 09:32 AM)palistov Wrote: AddQuest("rubblequest", "RubbleQuest");
CompleteQuest("rubble1quest", "RubbleQuest");

Quest name has to match. Also you can compact your script by having the quest functions combined into one.

void OnStart()
{
    AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
    AddEntityCollideCallback("Player", "Rubble_Quest_Area", "RubbleQuest", true, 1);
    AddEntityCollideCallback("Player", "Rubble_Complete_Area", "RubbleQuest", true, 1);
}

void RubbleQuest(string &in parent, string &in child, int state)
{
    if(child == "Rubble_Quest_Area") AddQuest("rubblequest", "RubbleQuest");
    if(child == "Rubble_Complete_Area") if(QuestIsAdded("rubblequest")) CompleteQuest("rubblequest", "RubbleQuest");
}

I've removed the '1' and combined the quest functions but it still won't add the memento or swing the door closed. Thanks for your help so far, and sorry for being so persistent.
07-17-2011, 09:48 AM
Find


Messages In This Thread
Scripting help needed - by Jovismcp - 07-16-2011, 01:15 PM
RE: Scripting help needed - by palistov - 07-16-2011, 04:01 PM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:07 AM
RE: Scripting help needed - by palistov - 07-17-2011, 09:09 AM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:19 AM
RE: Scripting help needed - by palistov - 07-17-2011, 09:32 AM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:48 AM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:23 PM



Users browsing this thread: 1 Guest(s)