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
Using Quest System
Re: Using Quest System
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
Dialogue System Trigger
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"
- Trigger: OnDestroy
- Condition: Quest Condition > "Shoot a Red Cube" is successful
- Actions:
- Show Alert: "Wrong cube!"
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"
- Trigger: OnDestroy
- Condition: Quest Condition > "Shoot a Red Cube" is active
- Actions:
- Show Alert: "Wrong cube!"
Re: Using Quest System
hi , thanks for ur relpy , but do u mean quest trigger?
Re: Using Quest System
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.
Re: Using Quest System
oh i see , because my version dont have dialogue system triggers ><
Re: Using Quest System
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.