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

Author Topic: Batch game, HP  (Read 2974 times)

0 Members and 1 Guest are viewing this topic.

AlfonsL

    Topic Starter


    Newbie

    • Experience: Familiar
    • OS: Windows 10
    Batch game, HP
    « on: June 01, 2018, 07:58:46 AM »
    Hi! it's been a while since i have been programming in batch now, and i'm trying to get back into it.

    Basically, what i'm trying to do is make kind of a Pokemon 1v1 game. I've made the hp of the pokemons into two variables, to make it possible to lower the hp after attacks. But the hp wont show? I've searched the web and nothing helps. I'll provide a screenshot of the code and a screenshot of the game:

    (Just to clarify, sqhp means Squirtle HP and pkhp means Pikachu HP)

    https://gyazo.com/a9b37e7f4e4530f95160548439f5daa1 To zoom in, click on the picture.
    https://gyazo.com/950519488872d7afeb3a5dee117bbdd2

    I appreciate all the help i can get.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Batch game, HP
    « Reply #1 on: June 01, 2018, 09:46:59 AM »
    You never initialize the HP Variables- You skip over them entirely with the goto start.
    I was trying to dereference Null Pointers before it was cool.

    AlfonsL

      Topic Starter


      Newbie

      • Experience: Familiar
      • OS: Windows 10
      Re: Batch game, HP
      « Reply #2 on: June 01, 2018, 10:44:57 AM »
      Wow, im so dumb haha

      Thanks alot ;)

      JoshCM



        Greenhorn

        • Experience: Familiar
        • OS: Windows 10
        Re: Batch game, HP
        « Reply #3 on: June 27, 2018, 10:26:39 AM »
        I'm curious how far you got with this project. Is it ready for testing?  ;)