Search:

Type: Posts; User: ZeroLRS

Search: Search took 0.17 seconds.

  1. Replies
    6
    Views
    362

    Re: Multiple Problems

    For the first major problem, the bug lies somewhere within locationTest and/or battleTest.
    In the second problem, which is only discoverable by either directly sending enemy data to battle test from...
  2. Replies
    6
    Views
    362

    Re: Multiple Problems

    In actuallty, there are no errors per-say. But it will do things like print null values, and not show variable changes.

    Here are all of the source files.

    GameD01:


    import java.util.Scanner;...
  3. Replies
    6
    Views
    362

    Multiple Problems

    There are quite a few errors in my code and I have no idea on how to go about fixing them.
    It is a game, and the list of errors is in the "Information" file of the included .zip file.
    If you have...
  4. Replies
    10
    Views
    734

    Re: Using a string when creating an object.

    Darn, I plan to have several hundred "plant<plantname>" classes.
    I felt like being lazy and not making a VERY long else if...

    All that is contained in the "plant<plantname>" classes is several...
  5. Replies
    10
    Views
    734

    Re: Using a string when creating an object.

    1st question:

    The object after plant means that I want to have the word plant (the prefix for all my plant<plantname> classes) to have the value of the string directly after it.
    ie, I have:...
  6. Replies
    10
    Views
    734

    Re: Using a string when creating an object.

    But the string from the array needs to be in the object after plant.
    So if I have plantList[0] as tree and I'm making the new object to get info from plantTree.java, I need the computer to read it...
  7. Replies
    10
    Views
    734

    Using a string when creating an object.

    Say I have a list of plants and a bunch of plant<Plantname> classes.
    I want to be able to use a plant from the array to create an object for referencing a plant<Plantname> class.

    My first class....
  8. [SOLVED] Re: My string is not activating my if statment.

    Looking at my code now, I've already started most of the battle system's core.

    I'm amazed that I wrote all of this stuff. Even more so that I started java yesterday.
  9. [SOLVED] Re: My string is not activating my if statment.

    Thank you so much!
    In the videos I'm watching, I haven't gotten to equals yet, this worked perfectly.

    When I finish this in however many months it will take me, I'm gonna put you in the credits :)
  10. [SOLVED] Re: My string is not activating my if statment.

    I'm an idiot when it comes to editing my own code....
    In eclipse I changed the choice if to:
    if(operation == stats){

    but in my post, I changed it to:
    if(stats){

    How do you suppose I make it...
  11. [SOLVED] Re: My string is not activating my if statment.

    It prints:

    op=stats< stats=null<

    which tells me that the if should go off, but it still doesn't.
    NOTE: In the code of the original post, I changed the choice if to a regular if, the choice was...
  12. [SOLVED] My string is not activating my if statment.

    I have recently started to learn java and wanted skills to test my skills so far. I started making a small text-based game and have hit an early roadblock.

    I have two classes so far, one for the...
Results 1 to 12 of 12