Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Random  (Read 9572 times)

0 Members and 1 Guest are viewing this topic.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Random
« Reply #15 on: October 11, 2008, 09:18:18 AM »
Mine. I didn't have an Oattack(or whatever ::) ) and it brought up an error.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Random
« Reply #16 on: October 11, 2008, 09:22:46 AM »
I tried the code...now it goes to negative numbers(lol) but it still has the constant...it uses the same numbers for damage delt(not player and monster. example: player does 2 always monster does 3 always) untill you close and try again. Sorry for double post!
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Jacob



    Hopeful

    Thanked: 1
    • Experience: Expert
    • OS: Windows XP
    Re: Random
    « Reply #17 on: October 11, 2008, 09:24:32 AM »
    I tried the code...now it goes to negative numbers(lol) but it still has the constant...it uses the same numbers for damage delt(not player and monster. example: player does 2 always monster does 3 always) untill you close and try again. Sorry for double post!

    Change -29 to -1.
    And I can't help on your error, sorry.

    Helpmeh

      Topic Starter


      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: Random
    « Reply #18 on: October 11, 2008, 09:25:38 AM »
    No longer negative numbers...but otherwise...same problem! >:( Thanks for your help though!
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    Jacob



      Hopeful

      Thanked: 1
      • Experience: Expert
      • OS: Windows XP
      Re: Random
      « Reply #19 on: October 11, 2008, 09:30:27 AM »
      No longer negative numbers...but otherwise...same problem! >:( Thanks for your help though!
      set random=%random%
      add that below
      :attack

      Helpmeh

        Topic Starter


        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: Random
      « Reply #20 on: October 11, 2008, 09:45:16 AM »
      This is extremely wierd...it just won't work!
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      Jacob



        Hopeful

        Thanked: 1
        • Experience: Expert
        • OS: Windows XP
        Re: Random
        « Reply #21 on: October 11, 2008, 09:47:11 AM »
        This is extremely wierd...it just won't work!
        I can help no more, the only advice I can give you is build it again from the ground up.
        Testing as you go.

        Helpmeh

          Topic Starter


          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Random
        « Reply #22 on: October 11, 2008, 10:04:17 AM »
        It works! Thanks a lot! ;D I'm going to improve it so you gain exp and possibly lv up!


        The fruits of my labour!

        http://www.megaupload.com/?d=DUA8211C
        MONSTER BATTLE 0.1!
        « Last Edit: October 11, 2008, 10:36:34 AM by Helpmeh »
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        Jacob



          Hopeful

          Thanked: 1
          • Experience: Expert
          • OS: Windows XP
          Re: Random
          « Reply #23 on: October 11, 2008, 12:11:52 PM »
          Looks good, you just need to work on usability now as it is quite confusing and you should do an automated attack where every 2 seconds you attack, to get rid of the Y/N attack?. Other than that it is very good.

          I need to work on leveling up as well soon.
          Let me know on how you get on.

          ALAN_BR



            Hopeful

            Thanked: 5
            • Computer: Specs
            • Experience: Experienced
            • OS: Windows 7
            Re: Random
            « Reply #24 on: October 11, 2008, 02:58:22 PM »
            Hi

            If you Google search "randomize random" you get 977,00 hits
            and a random selection indicate this can be done by use of the computer timer to provide a "seed".  Many of these hits apply to languages other than basic.

            "randomize random basic" gives a more focused 244,000 hits which use the same technique.

            A very simple technique might be to use %TIME%, which appends ".nn% as a decimal fraction of a second, and if you extract these last two digits you will automatically have a "random" number in the range 00 to 99 - which may be close enough to your original requirement of a range 0 to 100.

            Regards
            Alan

            Jacob



              Hopeful

              Thanked: 1
              • Experience: Expert
              • OS: Windows XP
              Re: Random
              « Reply #25 on: October 11, 2008, 03:15:54 PM »
              Hi

              If you Google search "randomize random" you get 977,00 hits
              and a random selection indicate this can be done by use of the computer timer to provide a "seed".  Many of these hits apply to languages other than basic.

              "randomize random basic" gives a more focused 244,000 hits which use the same technique.

              A very simple technique might be to use %TIME%, which appends ".nn% as a decimal fraction of a second, and if you extract these last two digits you will automatically have a "random" number in the range 00 to 99 - which may be close enough to your original requirement of a range 0 to 100.

              Regards
              Alan


              Yes, very true.

              Helpmeh

                Topic Starter


                Guru

              • Roar.
              • Thanked: 123
                • Yes
                • Yes
              • Computer: Specs
              • Experience: Familiar
              • OS: Windows 8
              Re: Random
              « Reply #26 on: October 15, 2008, 02:15:59 PM »
              Looks good, you just need to work on usability now as it is quite confusing and you should do an automated attack where every 2 seconds you attack, to get rid of the Y/N attack?. Other than that it is very good.

              I need to work on leveling up as well soon.
              Let me know on how you get on.

              Well I have heard that idea as well, just one problem. The only way I can think of is if the user gets the sleep function...any other way and I'd gladly do it.
              Where's MagicSpeed?
              Quote from: 'matt'
              He's playing a game called IRL. Great graphics, *censored* gameplay.

              ALAN_BR



                Hopeful

                Thanked: 5
                • Computer: Specs
                • Experience: Experienced
                • OS: Windows 7
                Re: Random
                « Reply #27 on: October 15, 2008, 02:37:30 PM »
                You do not need sleep, just PING.

                Use Search box at top of page for "ping delay"
                out of a dozen hits, one gave a solution :-
                Code: [Select]
                Ping 1.1.1.1 -n 15 -w 1000 > nulSearch for "ping" and there are far more hits to choose from, including
                http://www.computerhope.com/pinghlp.htm

                Regards
                Alan

                Helpmeh

                  Topic Starter


                  Guru

                • Roar.
                • Thanked: 123
                  • Yes
                  • Yes
                • Computer: Specs
                • Experience: Familiar
                • OS: Windows 8
                Re: Random
                « Reply #28 on: October 15, 2008, 05:03:46 PM »
                thanks! ;D
                Where's MagicSpeed?
                Quote from: 'matt'
                He's playing a game called IRL. Great graphics, *censored* gameplay.