Using Quest System

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Momo
Posts: 5
Joined: Thu Apr 28, 2016 7:13 am

Using Quest System

Post by Momo »

Hi Tony ,
I Have little bit problem when using quest,
Actually i'm doing shooting games that requires player to shoot the right answer when mission ask them to,
So for mission one , they need to shoot a cube then get mark , for mission 2 , shoot cube b then get marks too , but the problem is , when player starting mission one , n shoot cube b , they still counted as right answer , how to disable item according to the quest? hope u can help me :(
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using Quest System

Post by Tony Li »

Hi,

There are many ways you could do this. Some may be easier than others, depending on how the rest of your game is set up. I'll suggest one example here. If it doesn't fit your needs, just let me know.

Let's say your game is a shooting gallery. Red Cubes and Blue Cubes float across the screen.

Mission one is "Shoot a Red Cube". Mission one starts active.

Mission two is "Shoot a Blue Cube". Mission two starts unassigned.

On your Red Cubes, assign two Dialogue System Triggers:

Dialogue System Trigger
  • Trigger: OnDestroy
  • Condition: Quest Condition > "Shoot a Red Cube" is active
  • Actions:
    • Set Quest State "Shoot a Red Cube" to successful
    • Set Quest State "Shoot a Blue Cube" to active
    • Show Alert: "Mission One Complete. Mission Two: Shoot a Blue Cube"
Dialogue System Trigger
  • Trigger: OnDestroy
  • Condition: Quest Condition > "Shoot a Red Cube" is successful
  • Actions:
    • Show Alert: "Wrong cube!"
On your Blue Cubes, assign two Dialogue System Triggers:

Dialogue System Trigger
  • Trigger: OnDestroy
  • Condition: Quest Condition > "Shoot a Blue Cube" is active
  • Actions:
    • Set Quest State "Shoot a Blue Cube" to successful
    • Show Alert: "Mission Two Complete"
Dialogue System Trigger
  • Trigger: OnDestroy
  • Condition: Quest Condition > "Shoot a Red Cube" is active
  • Actions:
    • Show Alert: "Wrong cube!"
Momo
Posts: 5
Joined: Thu Apr 28, 2016 7:13 am

Re: Using Quest System

Post by Momo »

hi , thanks for ur relpy , but do u mean quest trigger?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using Quest System

Post by Tony Li »

I used a Dialogue System Trigger instead of a Quest Trigger, but you could use Quest Triggers if you prefer. Dialogue System Trigger is a little more complicated than Quest Trigger, but it works mostly the same way.
Momo
Posts: 5
Joined: Thu Apr 28, 2016 7:13 am

Re: Using Quest System

Post by Momo »

oh i see , because my version dont have dialogue system triggers ><
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using Quest System

Post by Tony Li »

Hmm, you may be on a very old version. If you'd like to update to the very latest (1.6.2), it's on the Pixel Crushers download site. To get access, please PM me your Unity Asset Store invoice number. Otherwise it will be on the Asset Store in 5-7 days.
Post Reply