Announcement

Collapse
No announcement yet.

Fishing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Fishing

    Hey does anyone here know how to make a fishing system
    When i die, I'm going to break my DS so it comes with me. Why? because there is Wi-Fi in heaven! Duh!
    (Stupidest Signature Ever)

    #2
    Re: Fishing

    Originally posted by Dragoon171717 View Post
    Hey does anyone here know how to make a fishing system
    Well i have never made one, but i can see ways it could probably be done.

    You would have to create a fishing animation with the Visual Effects editor probably, make an input variable for the different types of fish you might catch and make it random i suppose. Here is a rough idea...

    Rename Variable 251 to [Name of Fish]
    Rename Input 026 to [Name of Fish]

    Now make a seperate script to call up later that looks like this:

    Script Branch: Sort: Input [Name of Fish]
    Apply if: 1
    Data/Input:[Name of Fish] = Text [Minnow]
    Script Branch: To End
    Apply if: 2
    Data/Input:[Name of Fish] = Text [Shark]
    Script Branch: To End
    Script: Branch End
    Screen Display/Content/Input:[Name of Fish]

    Now call this script Show Fish Name then exit and update

    Now make a new script and put it in an event that happens when you walk onto a pier or something


    Screen Display/Tex/Message: Do you want to fish?
    Input Creation/Mutliple Choice/ 1. yes
    2. no
    Script Branch: Condition: Variable[user Choice] = +1
    Screen Display/Effects/Member - Effect [Fishing animation] Repeat 1
    Data/Variable[Name of Fish] = 1 ? 2
    Script Branch/Sort by variable [Name of Fish]
    Apply if: 1
    Screen Display/Text/Message: You catch a
    Script/Call Script[Show Fish Name]
    Screen Display/Text/Message: !
    Script Branch: To End
    Apply if: 2
    Screen Display/Text/Message: You catch a
    Script/Call Script[Show Fish Name]
    Screen Display/Text/Message: !
    Script Branch: To End
    Script: Branch End
    Script: Condition End
    Script Branch: Condition: Variable[user Choice] = +2
    Script/Force Script End
    Script: Condition End



    This is a very simple script, but maybe it helps get you going. You can add all the different fish you want to the script by just adding a new name in your Show Fish Name script and just add a new Apply If: and increase the range of your random variable accordingly.
    Last edited by Jeremy; 07-17-2009, 02:34 AM.

    Comment


      #3
      Re: Fishing

      Thnx Jeremy.
      When i die, I'm going to break my DS so it comes with me. Why? because there is Wi-Fi in heaven! Duh!
      (Stupidest Signature Ever)

      Comment


        #4
        Re: Fishing

        Jeremy, your script is pretty good, but why have 2 data types for the fishing system? the input isnt really needed, just a table of variable numbers linked to the fish.

        Ex:

        If Fish = 1 - minnow
        If Fish = 2 - bass
        If Fish = 3 - Perch

        etc.

        Here's a rough example of something i used in my Farm Life Game

        Repeat (000 OFF):
        -Wait 1f
        -Data: Fish = 0 ? 100
        -Script Branch: Sort: Fish
        --Apply if 1
        ---You caught a Minnow!
        ---(give minnow)
        ---Script: Force End.
        --Apply if 2
        ---You caught a Bass!
        ---(give bass)
        ---Script: Force End.
        --Apply if 3
        ---You Caught a Perch!
        ---(give perch)
        ---Script: Force End
        --No Application
        -Sort End
        Repeat End

        this has no player interaction, but it can be done, for sure. If you wanted to make it so the player had so much time to press X to catch it.

        What this script does is basically randomize a variable every 1/30th of a second, 0 through 100. if its 1, then the player caught a minnow, if its 2, the player caught a bass, 3, a perch. You can make however many conditions you'd like for new fish.

        If the player has not caught a fish, it'll just keep waiting/randomizing.
        The example is primitive of what could be done, but its a good foundation.
        I love lamp.

        Comment


          #5
          Re: Fishing

          Originally posted by Doyleman View Post
          Jeremy, your script is pretty good, but why have 2 data types for the fishing system? the input isnt really needed, just a table of variable numbers linked to the fish.

          Ex:

          If Fish = 1 - minnow
          If Fish = 2 - bass
          If Fish = 3 - Perch

          etc.

          Here's a rough example of something i used in my Farm Life Game

          Repeat (000 OFF):
          -Wait 1f
          -Data: Fish = 0 ? 100
          -Script Branch: Sort: Fish
          --Apply if 1
          ---You caught a Minnow!
          ---(give minnow)
          ---Script: Force End.
          --Apply if 2
          ---You caught a Bass!
          ---(give bass)
          ---Script: Force End.
          --Apply if 3
          ---You Caught a Perch!
          ---(give perch)
          ---Script: Force End
          --No Application
          -Sort End
          Repeat End

          this has no player interaction, but it can be done, for sure. If you wanted to make it so the player had so much time to press X to catch it.

          What this script does is basically randomize a variable every 1/30th of a second, 0 through 100. if its 1, then the player caught a minnow, if its 2, the player caught a bass, 3, a perch. You can make however many conditions you'd like for new fish.

          If the player has not caught a fish, it'll just keep waiting/randomizing.
          The example is primitive of what could be done, but its a good foundation.
          It was a crappy simplistic script i just come up with off the top of my head, trying to keep it as simple as possible just to give an idea of where to start, but ty ^^

          And why did i make both a variable and an input variable you mean?

          Well that is a habit i picked up due to some limitations on input variables that normal variables do not share. I never use input variables as anything but script calls to call up different text based on the value of it's mirror variable. For this script though you are right - it really is quite pointless, but that's just how i do things to ensure i can use any available condition i want to show off the name i'm after.

          Comment


            #6
            Re: Fishing

            I made a fishing system for an RPGM3 game I worked on. Two of them, actually.

            Comment

            Working...
            X