Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quest script help
Author Message
Raymond Offline
Member

Posts: 126
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Russ Money Offline
Senior Member

Posts: 360
Joined: Dec 2010
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
Raymond Offline
Member

Posts: 126
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
larslu Offline
Junior Member

Posts: 30
Joined: Mar 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Anxt Offline
Senior Member

Posts: 588
Joined: Mar 2011
Reputation: 10
Post: #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 all posts by this user Quote this message in a reply
Raymond Offline
Member

Posts: 126
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)