Quest Journal add quest using custom script
-
- Posts: 4
- Joined: Sat Mar 22, 2025 12:44 pm
Quest Journal add quest using custom script
Anyone, how to add the list of quests in quest journall script attached to the character Using custom script?
- Attachments
-
- questJournal.png (66.73 KiB) Viewed 2679 times
-
- Posts: 4
- Joined: Sat Mar 22, 2025 12:44 pm
Re: Quest Journal add quest using custom script
But how to add multiple quest using that custom script?
Re: Quest Journal add quest using custom script
Hi,
The simplest way is to use the QuestGiver setup described in the first part of that post. Simply call QuestGiver.GiveAllQuestsToQuester().
If you don't want to do that, you can use the code in the second part of the post for each of the quests.
The simplest way is to use the QuestGiver setup described in the first part of that post. Simply call QuestGiver.GiveAllQuestsToQuester().
If you don't want to do that, you can use the code in the second part of the post for each of the quests.
-
- Posts: 4
- Joined: Sat Mar 22, 2025 12:44 pm
Re: Quest Journal add quest using custom script
Here my problem Sir
- Attachments
-
- Screenshot_82.png (99.9 KiB) Viewed 1354 times
Re: Quest Journal add quest using custom script
Loop through the list.
Code: Select all
[SerializeField] private List<Quest> questAssets;
...
foreach (var questAsset in questAssets)
{
var questInstance = questAsset.Clone();
...