Frictional Games Forum (read-only)

Full Version: Quest script help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to know what to put for the quest script.

Code:
AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.
(03-14-2011, 07:17 AM)Raymond Wrote: [ -> ]I need to know what to put for the quest script.

Code:
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.

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


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

Later, once the quest is complete

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

Just change the names in the script, leave the quotes.
Thank you very much Big Grin.
(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.

Code:
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.

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


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

Later, once the quest is complete

Code:
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?
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)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.