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
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#6
RE: Scripting help needed

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");
}

(This post was last modified: 07-17-2011, 09:32 AM by palistov.)
07-17-2011, 09:32 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: 2 Guest(s)