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
How to add a quest?
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#1
How to add a quest?

Hi
I want to add a quest when you press a button
but how to script it?

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


(This post was last modified: 02-05-2012, 11:25 AM by Shives.)
02-05-2012, 10:46 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: How to add a quest?

Do you know how to set condition for start? All the other part comes after condition is met Tongue

The Interrogation
Chapter 1

My tutorials
02-05-2012, 12:15 PM
Find
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#3
RE: How to add a quest?

I don't really understand
What's condition?

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


02-05-2012, 12:35 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: How to add a quest?

Welcome to the world of scripting:

http://wiki.frictionalgames.com/hpl2/tut...ng/article

The Interrogation
Chapter 1

My tutorials
02-05-2012, 12:38 PM
Find
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#5
RE: How to add a quest?

I know this page
Could you just show me how this script shold look like?

(Thank you i wanted to know too how to script the piano scare and now i know it because I've seen your tutorial)

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


02-05-2012, 01:25 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#6
RE: How to add a quest?

void OnStart()
{
SetEntityPlayerInteractCallback("ButtonName", "FunctionName", true);
}

void FunctionName(string &in asEntity)
{
AddQuest("QuestName", "EntryName");
}

u get all more detailed info about functions and how they work from your scripting bible:

http://wiki.frictionalgames.com/hpl2/amn..._functions

The Interrogation
Chapter 1

My tutorials
02-05-2012, 02:03 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: How to add a quest?

For a button, it may be more practical to go with SetEntityConnectionStateChangeCallback instead of SetEntityPlayerInteractCallback.

Tutorials: From Noob to Pro
02-05-2012, 11:22 PM
Website Find




Users browsing this thread: 1 Guest(s)