Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Very Basic Quest system

Discussion in 'Scripting' started by NjordNystrom, Nov 18, 2021.

Thread Status:
Not open for further replies.
  1. NjordNystrom

    NjordNystrom

    Joined:
    Feb 29, 2016
    Posts:
    25
    Hello folks, Newbie here ! I m consider about making very easy quest.

    If you clicked 3 Chicken your quest will complete.

    For this i tried to create algorithm like that:

    Goal : Collect data about currentAmount, requiredAmount

    If raycast hit >>> GameObject with Tag = " Chicken "
    currentAmount += 1;
    if current >= required
    enable.SuccessUI


    Yeah its simple but i dont have any idea how can i store data and control it ?
    Any one can help me :(
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    Here are about 599,000 possible approaches you could consider:
    Screen Shot 2021-11-18 at 1.35.57 PM.png
     
    zombiegorilla and exiguous like this.
  3. NjordNystrom

    NjordNystrom

    Joined:
    Feb 29, 2016
    Posts:
    25
    I cant not find what i want to ask in 599,000 possible approaches. Thats why im here. These kind of messages not helpful. NEGATIVE POINTS FOR YOUUU !'!!
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,016
    About once a week, if not more, someone comes on here asking how to make systems that are generally far too broad to sensibly answer in a forum post. Stuff like a quest system, inventory system, or stuff way out of a newbie's league like wall-running.

    The forums are best used to either provide broad answers, or to help with questions with very, very, specific answers.

    Quest systems come in so many different permutations that I might as well make my own youtube tutorial to appear in above screenshot in order to answer your question. They're also something I would put at the intermediate level in terms of experience, so you may just cause yourself frustration by shooting above your league.

    So I'll reiterate what @Kurt-Dekker said and suggest you look at some basic tutorials. They won't teach you to make exactly the quest you want, but they'll teach you the concepts you may need to achieve your goal.
     
  5. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    You don't. You pick ONE tutorial, do it, learn from it. Then you consider if thats enough and you can achieve your goal. If not you do the next tutorial. You do this until you are able to solve your problem.
    Why should someone here repeat what's already written/posted/videoed 599.000 times for you?

    You are registered here for almost 6 years now. That should be enough time to learn some basic programming.
    How to store data has also been written down already. So no need for anyone to repeat this here too.

    You ask no specific question so you CANNOT get a specific answer. Noone here has time to "spoonfeed" someone who is too lazy to look for required information himself.

    This won't hurt Kurt very much since he's almost at 8000 likes. What have you achieved? Maybe reconsider your attitude. This one will not get you very far (in any part of life).
     
    zombiegorilla likes this.
  6. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,003
Thread Status:
Not open for further replies.