Search found 6 matches

by BPPP1999
Sat Jul 25, 2020 9:39 am
Forum: Dialogue System for Unity
Topic: Reward System
Replies: 11
Views: 1162

Re: Reward System

It works! Thank you so much
by BPPP1999
Sat Jul 25, 2020 3:31 am
Forum: Dialogue System for Unity
Topic: Reward System
Replies: 11
Views: 1162

Re: Reward System

Thank you for your reply, it was really helpful and it works once the quest is completed but the issue now is that the Acorns in the open world do not count towards the score, it only seems to be the Acorns for the quest completion
by BPPP1999
Fri Jul 24, 2020 5:28 pm
Forum: Dialogue System for Unity
Topic: Reward System
Replies: 11
Views: 1162

Re: Reward System

Sorry about this, I have 3 scripts as shown below; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class GameHandler : MonoBehaviour { public TextMeshProUGUI AcornText; public int Acorns = 0; public void AddCoins(int amount) { ...
by BPPP1999
Fri Jul 24, 2020 4:18 pm
Forum: Dialogue System for Unity
Topic: Reward System
Replies: 11
Views: 1162

Re: Reward System

Hi,

It's just not updating the UI, would you like me to post the scripts I currently have?
by BPPP1999
Fri Jul 24, 2020 2:35 pm
Forum: Dialogue System for Unity
Topic: Reward System
Replies: 11
Views: 1162

Re: Reward System

Hi Tony, Thank you for your help I really appreciate it. I think I have most of it working, when completing the quest I now get the coins shown in the public int which is attached to the player. For example I get 20 coins for completing this quest and shows in the inspector for the player but how wo...
by BPPP1999
Fri Jul 24, 2020 7:42 am
Forum: Dialogue System for Unity
Topic: Reward System
Replies: 11
Views: 1162

Reward System

Hi, I have setup a quest line following one of the YouTube tutorials but I would like the player to receive some coins at the end (about 20 coins). I already had two scripts "coin script & gamehandler" and with these scripts I am able to walk around collecting coins but I would also li...