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
Quest script help
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#1
Quest script help

I need to know what to put for the quest script.

AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.

One World To Another [DEMO] coming soon.
03-14-2011, 07:17 AM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: Quest script help

(03-14-2011, 07:17 AM)Raymond Wrote: I need to know what to put for the quest script.

AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.

In the Journal category in you .lang file, add the following.

<Entry Name="Quest_"QUEST NAME HERE"_Text"> "QUEST TEXT HERE" </Entry>
//Remove the quotes and spaces


Then use the func as
AddQuest("STRING NAME", "QUEST NAME HERE");

Later, once the quest is complete

CompleteQuest("STRING NAME", "QUEST NAME HERE");

Just change the names in the script, leave the quotes.
03-14-2011, 08:29 AM
Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#3
RE: Quest script help

Thank you very much Big Grin.

One World To Another [DEMO] coming soon.
(This post was last modified: 03-15-2011, 04:55 AM by Raymond.)
03-14-2011, 01:28 PM
Find
larslu Offline
Junior Member

Posts: 30
Threads: 15
Joined: Mar 2011
Reputation: 0
#4
RE: Quest script help

(03-14-2011, 08:29 AM)Russ Money Wrote:
(03-14-2011, 07:17 AM)Raymond Wrote: I need to know what to put for the quest script.

AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.

In the Journal category in you .lang file, add the following.

<Entry Name="Quest_"QUEST NAME HERE"_Text"> "QUEST TEXT HERE" </Entry>
//Remove the quotes and spaces


Then use the func as
AddQuest("STRING NAME", "QUEST NAME HERE");

Later, once the quest is complete

CompleteQuest("STRING NAME", "QUEST NAME HERE");

Just change the names in the script, leave the quotes.

One more question, what if you want to add a quest and complete a quest in a area?
03-21-2011, 06:51 PM
Find
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#5
RE: Quest script help

Just use an AddEntityCollideCallback for the player and the area, and have the function that is called give the quest.

03-21-2011, 11:54 PM
Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#6
RE: Quest script help

(03-21-2011, 11:54 PM)Anxt Wrote: Just use an AddEntityCollideCallback for the player and the area, and have the function that is called give the quest.
I put a lot of quests in my story. Some of them can't be completed until when you reach the last world.

One World To Another [DEMO] coming soon.
(This post was last modified: 03-22-2011, 09:37 AM by Raymond.)
03-22-2011, 09:36 AM
Find




Users browsing this thread: 3 Guest(s)