Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
-2
Question by iceblitz · Sep 02, 2011 at 10:41 PM · c#quest

How do i make a quest in c# for my game?

Hello there, i am in no way an expert in c# and I've been looking around for a tutorial on how to create a quest system. I know there are things you can purchase which will do this for you but id rather learn myself. I have looked myself but most of what i looked at online did not help me.

an overview of what i want:

you right click npc quest box with text appears you click accept or decline you do what the npc wants, ie grab an onion from the ground you return to the npc with the item the npc thanks you and offers you a reward you receive the reward and your on your merry way


Many Thanks in Advance.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Waz · Sep 02, 2011 at 10:48 PM 0
Share

You're likely going to have to write that yourself, as it's the "meat" of the game, not something that can be easily reused in multiple games, so there is unlikely to be something available. Alternatively, $$anonymous$$m up with a programmer.

avatar image Bovine · Sep 02, 2011 at 11:07 PM 0
Share

I have the same problem to solve but your question is far too big to answer very precisely, however in my view:

  • Quests are data driven

  • A quest would be a subclass of ScriptableObject

  • you will need an editor and menus to create quest assets

  • your npc will have a List of your QuestData for quests the NPC can offer

  • Quests that involve killing mobs will mean you will need a list of mobs and some way (I.e an index or a guid) of tying the mob to a quest for kill x of mob type Y

  • collecting will similar need to know whether items you collect are quest items

As you can see it's quite complex and you'll need custom editors to make it scalable!

Hope the comments help tho...

1 Reply

· Add your reply
  • Sort: 
avatar image
-1

Answer by Zorcian · Sep 03, 2011 at 03:01 PM

ok id say he is partially correct but it may not be that be that simple. yes you will need objects but moslty those objects will have var. attavhed to them and you use these to let the system know if they have met the requirements for that quest. your best bet is to try and learn C# from the varible basics in unitys scripting in unity or online. good luck email fusmc7@gmail.com for more help.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bovine · Sep 03, 2011 at 03:12 PM 0
Share

@Zorcian if by "he" you mean me - I would point out that what I have written is some considerable distance from being simple

avatar image iceblitz · Sep 03, 2011 at 03:57 PM 0
Share

~Thank you both, yes i did understand from the start i would need to have data lists and such. So i do agree with you Bovine, i will indeed take two steps back and learn more c#. so thank you to you both, and i will indeed email you :).

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Distribute terrain in zones 3 Answers

Multiple Cars not working 1 Answer

C# How to have a gun select 1 Answer

Trying to parent object to another object via script. "Setting the parent of a transform which resides in a prefab is disabled to prevent data corruption." 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges