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
.
(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 .
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.
(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 .
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.