Pokémon General Discussion

Discussion in 'Off Topic' started by Randle Scandal, Mar 19, 2010.

  1. AceOfSpades

    AceOfSpades Talented
    Forge Critic Senior Member

    Messages:
    3,552
    Likes Received:
    2,842
    Wi-Fi Setup - Pokemon Platinum Forums

    Go to the second post. It helped me set up mine.
     
  2. Katanga

    Katanga Ancient
    Senior Member

    Messages:
    1,090
    Likes Received:
    91
    Would any of you be able to get me a Bulbasaur with the egg move "Ingrain"? I'm planning on creating a self-sufficient Venusaur. Thsi is the planned stuff:

    Item: Big Root

    Moves:
    Ingrain
    Leech Seed
    Synthesis
    Giga Drain

    If anybody can get one of these for me, I'll happily trade something nice their way. I've got a fair few shinies now which gather dust in my PC.
     
  3. DimmestBread

    DimmestBread Ancient
    Senior Member

    Messages:
    1,504
    Likes Received:
    0
    My bad for the massive post but this is what I made in my AP computer science class. Its in Java and it is none other then voltorb flip. I'm still working some things out, like when you lose, you automatically go back down to level one and some other nitpicky things I have but if anyone can run java, take a swing at this. I'm thinking about posting this in gaming discussion as a seperate thread or in off topic, not sure if I should though. If anyone could help me make this into a like application that you can download from here and play, that would be appreciated. Just click the spoiler.

    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    //Created by Jason Lewis
    //Voltorb Flip
    //May 12th, 2010
    public class voltorbflip extends Applet implements ActionListener, WindowListener
    {
    JButton abutton = new JButton(" ");
    JButton bbutton = new JButton(" ");
    JButton cbutton = new JButton(" ");
    JButton dbutton = new JButton(" ");
    JButton ebutton = new JButton(" ");
    JButton fbutton = new JButton(" ");
    JButton gbutton = new JButton(" ");
    JButton hbutton = new JButton(" ");
    JButton ibutton = new JButton(" ");
    JButton jbutton = new JButton(" ");
    JButton kbutton = new JButton(" ");
    JButton lbutton = new JButton(" ");
    JButton mbutton = new JButton(" ");
    JButton nbutton = new JButton(" ");
    JButton obutton = new JButton(" ");
    JButton pbutton = new JButton(" ");
    JButton qbutton = new JButton(" ");
    JButton rbutton = new JButton(" ");
    JButton sbutton = new JButton(" ");
    JButton tbutton = new JButton(" ");
    JButton ubutton = new JButton(" ");
    JButton vbutton = new JButton(" ");
    JButton wbutton = new JButton(" ");
    JButton xbutton = new JButton(" ");
    JButton ybutton = new JButton(" ");
    Button bnlbutton = new Button("Begin New Level");
    Button startbutton = new Button("Start/Restart Game");
    Button dirbutton = new Button("Directions");

    Label alabel = new Label();
    Label blabel = new Label();
    Label clabel = new Label();
    Label dlabel = new Label();
    Label elabel = new Label();
    Label flabel = new Label();
    Label glabel = new Label();
    Label hlabel = new Label();
    Label ilabel = new Label();
    Label jlabel = new Label();
    Label aalabel = new Label();
    Label bblabel = new Label();
    Label cclabel = new Label();
    Label ddlabel = new Label();
    Label eelabel = new Label();
    Label fflabel = new Label();
    Label hhlabel = new Label();
    Label iilabel = new Label();
    Label zlabel = new Label();
    Label zzlabel = new Label();
    Label zzzlabel = new Label();
    Label labela = new Label();
    Label labelb = new Label();
    Label labelc = new Label();
    Label labeld = new Label();
    Label labele = new Label();
    Label labelf = new Label();
    Label labelg = new Label();
    Label labelaa = new Label();
    Label labelbb = new Label(" Voltorb Flip");
    Label labelcc = new Label();
    Label labeldd = new Label();
    Label labelee = new Label();
    Label labelff = new Label();
    Label labelgg = new Label();
    Label alab = new Label("Welcome to Voltorb Flip!");
    Label blab = new Label("To start the game, click the start button.");
    Label clab = new Label("Once you click the start button, numbers will be displayed next to each column and row.");
    Label dlab = new Label("Each square in the 5x5 grid has a value of 0 to 3.");
    Label elab = new Label("The first number next to the row indicates the total value of all of the squares in that row added up.");
    Label flab = new Label("The second number next to the row or indicates the total number of zeros in that row.");
    Label glab = new Label("The first number below each column indicates the total value of all of the squares in that column added up.");
    Label hlab = new Label("The second number next to the column indicates the total number of zeros in that column.");
    Label ilab = new Label("When you click on a square, the square's value will be displayed on that square.");
    Label jlab = new Label("Your score will be all of the square's values multiplied together.");
    Label klab = new Label("When you click on a zero, the game is over.");
    Label llab = new Label("The goal is to find all of the 2s and 3s on the grid. Once you have found all of them, the level is cleared.");
    Label mlab = new Label("A new level will appear for you. Your previous levels score will be added to your totalscore.");
    Label nlab = new Label("Use the numbers next to each row and column to predict where a zero will be likely to come up.");
    Label olab = new Label("Enjoy the game!");
    Label endlabel = new Label();

    int w = 0;
    int[] array = new int[25];
    int temporaryint = 0;
    int counterzero = 0;
    int total = 0;
    String total2;
    String countz;
    String temp;
    int score = 1;
    String score2;
    int n = 0;
    int numtotal = 0;
    int secnumtotal = 0;
    int level = 0;
    int totalscore = 0;
    String templabel;
    int del = 0;
    int b = 0;
    int j = 0;
    int l = 0;
    int k = 0;

    public void init( )
    {
    setLayout(new GridLayout(9,7));

    add(labelaa);
    add(labelbb);
    add(labelcc);
    add(labeldd);
    add(labelee);
    add(labelff);
    add(labelgg);

    add(labela);
    add(labelb);
    add(labelc);
    add(labeld);
    add(labele);
    add(labelf);
    add(labelg);

    add(abutton);
    add(bbutton);
    add(cbutton);
    add(dbutton);
    add(ebutton);
    add(alabel);
    add(aalabel);

    add(fbutton);
    add(gbutton);
    add(hbutton);
    add(ibutton);
    add(jbutton);
    add(blabel);
    add(bblabel);

    add(kbutton);
    add(lbutton);
    add(mbutton);
    add(nbutton);
    add(obutton);
    add(clabel);
    add(cclabel);

    add(pbutton);
    add(qbutton);
    add(rbutton);
    add(sbutton);
    add(tbutton);
    add(dlabel);
    add(ddlabel);

    add(ubutton);
    add(vbutton);
    add(wbutton);
    add(xbutton);
    add(ybutton);
    add(elabel);
    add(flabel);

    add(glabel);
    add(hlabel);
    add(ilabel);
    add(jlabel);
    add(eelabel);
    add(fflabel);
    add(dirbutton);

    add(hhlabel);
    add(iilabel);
    add(zlabel);
    add(zzlabel);
    add(zzzlabel);
    add(bnlbutton);
    add(startbutton);

    abutton.addActionListener(this);
    bbutton.addActionListener(this);
    cbutton.addActionListener(this);
    dbutton.addActionListener(this);
    ebutton.addActionListener(this);
    fbutton.addActionListener(this);
    gbutton.addActionListener(this);
    hbutton.addActionListener(this);
    ibutton.addActionListener(this);
    jbutton.addActionListener(this);
    kbutton.addActionListener(this);
    lbutton.addActionListener(this);
    mbutton.addActionListener(this);
    nbutton.addActionListener(this);
    obutton.addActionListener(this);
    pbutton.addActionListener(this);
    qbutton.addActionListener(this);
    rbutton.addActionListener(this);
    sbutton.addActionListener(this);
    tbutton.addActionListener(this);
    ubutton.addActionListener(this);
    vbutton.addActionListener(this);
    wbutton.addActionListener(this);
    xbutton.addActionListener(this);
    ybutton.addActionListener(this);;
    dirbutton.addActionListener(this);
    startbutton.addActionListener(this);
    }

    public void actionPerformed(ActionEvent e)
    {
    if(e.getSource() == startbutton)
    {
    labela.setText("");
    labelb.setText("");
    labelc.setText("");
    del = 0;
    newlevel();
    startbutton.removeActionListener(this);
    bnlbutton.removeActionListener(this);
    }

    if(e.getSource() == bnlbutton)
    {
    bnlbutton.removeActionListener(this);
    del = 0;
    newlevel();
    }

    if(e.getSource() == dirbutton)
    {
    Frame aframe = new Frame("Instructions");
    aframe.addWindowListener(this);
    aframe.setLayout(new GridLayout(16,1));
    aframe.setSize(600,300);
    aframe.setVisible(true);
    aframe.add(alab);
    aframe.add(blab);
    aframe.add(clab);
    aframe.add(dlab);
    aframe.add(elab);
    aframe.add(flab);
    aframe.add(glab);
    aframe.add(hlab);
    aframe.add(ilab);
    aframe.add(jlab);
    aframe.add(klab);
    aframe.add(llab);
    aframe.add(mlab);
    aframe.add(nlab);
    aframe.add(olab);
    dirbutton.removeActionListener(this);
    }

    if(del == 0)
    {
    if(e.getSource() == abutton)
    {
    b = 1;
    templabel = abutton.getLabel();
    temp = Integer.toString(array[0]);
    abutton.setLabel(temp);
    temporaryint = array[0];
    if(array[0] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == bbutton)
    {
    b = 2;
    templabel = bbutton.getLabel();
    temp = Integer.toString(array[1]);
    bbutton.setLabel(temp);
    temporaryint = array[1];
    if(array[1] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == cbutton)
    {
    b = 3;
    templabel = cbutton.getLabel();
    temp = Integer.toString(array[2]);
    cbutton.setLabel(temp);
    temporaryint = array[2];
    if(array[2] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == dbutton)
    {
    b = 4;
    templabel = dbutton.getLabel();
    temp = Integer.toString(array[3]);
    dbutton.setLabel(temp);
    temporaryint = array[3];
    if(array[3] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == ebutton)
    {
    b = 5;
    templabel = ebutton.getLabel();
    temp = Integer.toString(array[4]);
    ebutton.setLabel(temp);
    temporaryint = array[4];
    if(array[4] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == fbutton)
    {
    b = 6;
    templabel = fbutton.getLabel();
    temp = Integer.toString(array[5]);
    fbutton.setLabel(temp);
    temporaryint = array[5];
    if(array[5] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == gbutton)
    {
    b = 7;
    templabel = gbutton.getLabel();
    temp = Integer.toString(array[6]);
    gbutton.setLabel(temp);
    temporaryint = array[6];
    if(array[6] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == hbutton)
    {
    b = 8;
    templabel = hbutton.getLabel();
    temp = Integer.toString(array[7]);
    hbutton.setLabel(temp);
    temporaryint = array[7];
    if(array[7] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == ibutton)
    {
    b = 9;
    templabel = ibutton.getLabel();
    temp = Integer.toString(array[8]);
    ibutton.setLabel(temp);
    temporaryint = array[8];
    if(array[8] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == jbutton)
    {
    b = 10;
    templabel = jbutton.getLabel();
    temp = Integer.toString(array[9]);
    jbutton.setLabel(temp);
    temporaryint = array[9];
    if(array[9] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == kbutton)
    {
    b = 11;
    templabel = kbutton.getLabel();
    temp = Integer.toString(array[10]);
    kbutton.setLabel(temp);
    temporaryint = array[10];
    if(array[10] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == lbutton)
    {
    b = 12;
    templabel = lbutton.getLabel();
    temp = Integer.toString(array[11]);
    lbutton.setLabel(temp);
    temporaryint = array[11];
    if(array[11] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == mbutton)
    {
    b = 13;
    templabel = mbutton.getLabel();
    temp = Integer.toString(array[12]);
    mbutton.setLabel(temp);
    temporaryint = array[12];
    if(array[12] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();

    }

    if(e.getSource() == nbutton)
    {
    b = 14;
    templabel = nbutton.getLabel();
    temp = Integer.toString(array[13]);
    nbutton.setLabel(temp);
    temporaryint = array[13];
    if(array[13] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == obutton)
    {
    b = 15;
    templabel = obutton.getLabel();
    temp = Integer.toString(array[14]);
    obutton.setLabel(temp);
    temporaryint = array[14];
    if(array[14] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == pbutton)
    {
    b = 16;
    templabel = pbutton.getLabel();
    temp = Integer.toString(array[15]);
    pbutton.setLabel(temp);
    temporaryint = array[15];
    if(array[15] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == qbutton)
    {
    b = 17;
    templabel = qbutton.getLabel();
    temp = Integer.toString(array[16]);
    qbutton.setLabel(temp);
    temporaryint = array[16];
    if(array[16] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == rbutton)
    {
    b = 18;
    templabel = rbutton.getLabel();
    temp = Integer.toString(array[17]);
    rbutton.setLabel(temp);
    temporaryint = array[17];
    if(array[17] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == sbutton)
    {
    b = 19;
    templabel = sbutton.getLabel();
    temp = Integer.toString(array[18]);
    sbutton.setLabel(temp);
    temporaryint = array[18];
    if(array[18] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == tbutton)
    {
    b = 20;
    templabel = tbutton.getLabel();
    temp = Integer.toString(array[19]);
    tbutton.setLabel(temp);
    temporaryint = array[19];
    if(array[19] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == ubutton)
    {
    b = 21;
    templabel = ubutton.getLabel();
    temp = Integer.toString(array[20]);
    ubutton.setLabel(temp);
    temporaryint = array[20];
    if(array[20] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == vbutton)
    {
    b = 22;
    templabel = vbutton.getLabel();
    temp = Integer.toString(array[21]);
    vbutton.setLabel(temp);
    temporaryint = array[21];
    if(array[21] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == wbutton)
    {
    b = 23;
    templabel = wbutton.getLabel();
    temp = Integer.toString(array[22]);
    wbutton.setLabel(temp);
    temporaryint = array[22];
    if(array[22] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == xbutton)
    {
    b = 24;
    templabel = xbutton.getLabel();
    temp = Integer.toString(array[23]);
    xbutton.setLabel(temp);
    temporaryint = array[23];
    if(array[23] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }

    if(e.getSource() == ybutton)
    {
    b = 25;
    templabel = ybutton.getLabel();
    temp = Integer.toString(array[24]);
    ybutton.setLabel(temp);
    temporaryint = array[24];
    if(array[24] > 0)
    {
    if(templabel.compareTo(" ") == 0)
    setvalue();
    }
    else
    vend();
    }
    }
    }

    public void newlevel()
    {
    if(del == 0)
    {
    totalscore = totalscore + score;
    level = level + 1;
    score = 1;
    temporaryint = 0;
    counterzero = 0;
    total = 0;
    total2 = " ";
    countz = " ";
    temp = " ";
    score2 = " ";
    numtotal = 0;
    secnumtotal = 0;

    l = 1;
    restart();

    labelff.setText("Total score: " + totalscore);
    labelcc.setText("");
    labeldd.setText("");

    if(level == 1)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(9) + 0;
    if(r == 0 || r == 1)
    array[x] = 0;
    else if(r == 2 || r == 3 || r == 4 || r == 5 || r ==6)
    array[x] = 1;
    else if(r == 7 || r == 8)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 2)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(10) + 0;
    if(r == 0 || r == 1)
    array[x] = 0;
    else if(r == 2 || r == 3 || r == 4 || r == 5 || r == 6)
    array[x] = 1;
    else if(r == 7 || r == 8 || r == 9)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 3)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(11) + 0;
    if(r == 0 || r == 1 || r == 2)
    array[x] = 0;
    else if(r == 3 || r == 4 || r == 5 || r == 6 || r == 7)
    array[x] = 1;
    else if(r == 8 || r == 9 || r == 10)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 4)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(11) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 3)
    array[x] = 0;
    else if(r == 4 || r == 5 || r == 6 || r == 7)
    array[x] = 1;
    else if(r == 8 || r == 9 || r == 10)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 5)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(12) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 3)
    array[x] = 0;
    else if(r == 4 || r == 5 || r == 6 || r == 7)
    array[x] = 1;
    else if(r == 8 || r == 9 || r == 10 || r == 11)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 6)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(12) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 3)
    array[x] = 0;
    else if(r == 4 || r == 5 || r == 6 || r == 7)
    array[x] = 1;
    else if(r == 8 || r == 9 || r == 10)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 7)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(12) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 3)
    array[x] = 0;
    else if(r == 4 || r == 5 || r == 6 || r == 7)
    array[x] = 1;
    else if(r == 8 || r == 9 || r == 10 || r == 11)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 8)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(13) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 4)
    array[x] = 0;
    else if(r == 5 || r == 6 || r == 7 || r == 8)
    array[x] = 1;
    else if(r == 9 || r == 10 || r == 11)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 9)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(14) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 4)
    array[x] = 0;
    else if(r == 5 || r == 6 || r == 7 || r == 8 || r == 9)
    array[x] = 1;
    else if(r == 10 || r == 11 || r == 12 || r == 13)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 10)
    {
    for(int x = 0; x < 25; x++)
    {
    Random generator = new Random();
    int r = generator.nextInt(16) + 0;
    if(r == 0 || r == 1 || r == 2 || r == 4 || r == 5)
    array[x] = 0;
    else if(r == 6 || r == 7 || r == 8 || r == 9)
    array[x] = 1;
    else if(r == 10 || r == 11 || r == 12)
    array[x] = 2;
    else
    array[x] = 3;
    }
    }

    if(level == 11)
    win();

    for(int p = 0; p < 25; p++)
    {
    if(array[p] > 1)
    numtotal = numtotal + 1;
    }

    total = array[0] + array[1] + array[2] + array[3] + array[4];
    for(int a = 0; a < 5; a++)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    alabel.setText(" " + total2);
    aalabel.setText(countz);
    counterzero = 0;

    total = array[5] + array[6] + array[7] + array[8] + array[9];
    for(int a = 5; a < 10; a++)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    blabel.setText(" " + total2);
    bblabel.setText(countz);
    counterzero = 0;

    total = array[10] + array[11] + array[12] + array[13] + array[14];
    for(int a = 10; a < 15; a++)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    clabel.setText(" " + total2);
    cclabel.setText(countz);
    counterzero = 0;

    total = array[15] + array[16] + array[17] + array[18] + array[19];
    for(int a = 15; a < 20; a++)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    dlabel.setText(" " + total2);
    ddlabel.setText(countz);
    counterzero = 0;

    total = array[20] + array[21] + array[22] + array[23] + array[24];
    for(int a = 20; a < 25; a++)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    elabel.setText(" " + total2);
    flabel.setText(countz);
    counterzero = 0;

    total = array[0] + array[5] + array[10] + array[15] + array[20];
    for(int a = 0; a < 21; a = a + 5)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    glabel.setText(" " + total2);
    hhlabel.setText(" " + countz);
    counterzero = 0;

    total = array[1] + array[6] + array[11] + array[16] + array[21];
    for(int a = 1; a < 22; a = a + 5)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    hlabel.setText(" " + total2);
    iilabel.setText(" " + countz);
    counterzero = 0;

    total = array[2] + array[7] + array[12] + array[17] + array[22];
    for(int a = 2; a < 23; a = a + 5)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    ilabel.setText(" " + total2);
    zlabel.setText(" " + countz);
    counterzero = 0;

    total = array[3] + array[8] + array[13] + array[18] + array[23];
    for(int a = 3; a < 24; a = a + 5)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    jlabel.setText(" " + total2);
    zzlabel.setText(" " + countz);
    counterzero = 0;

    total = array[4] + array[9] + array[14] + array[19] + array[24];
    for(int a = 4; a < 25; a = a + 5)
    {
    if(array[a] == 0)
    counterzero = counterzero + 1;
    }
    total2 = Integer.toString(total);
    countz = Integer.toString(counterzero);
    eelabel.setText(" " + total2);
    zzzlabel.setText(" " + countz);
    counterzero = 0;

    j = 1;
    restart();

    labelaa.setText("Level: " + level);
    } //http://www.apl.jhu.edu/~hall/CWP-Chapter13/CWP-Chapter13.3.html
    }

    public void vend()
    {
    j = 1;
    l = 1;
    restart();

    labela.setText(" You flipped over a voltorb!");
    labelb.setText(" Game Over.");
    labelc.setText(" Total Score: " + totalscore);

    startbutton.addActionListener(this);

    if(b == 1)
    abutton.setLabel("0");
    else if(b == 2)
    bbutton.setLabel("0");
    else if(b == 3)
    cbutton.setLabel("0");
    else if(b == 4)
    dbutton.setLabel("0");
    else if(b == 5)
    ebutton.setLabel("0");
    else if(b == 6)
    fbutton.setLabel("0");
    else if(b == 7)
    gbutton.setLabel("0");
    else if(b == 8)
    hbutton.setLabel("0");
    else if(b == 9)
    ibutton.setLabel("0");
    else if(b == 10)
    jbutton.setLabel("0");
    else if(b == 10)
    kbutton.setLabel("0");
    else if(b == 12)
    lbutton.setLabel("0");
    else if(b == 13)
    mbutton.setLabel("0");
    else if(b == 14)
    nbutton.setLabel("0");
    else if(b == 15)
    obutton.setLabel("0");
    else if(b == 16)
    pbutton.setLabel("0");
    else if(b == 17)
    qbutton.setLabel("0");
    else if(b == 18)
    rbutton.setLabel("0");
    else if(b == 19)
    sbutton.setLabel("0");
    else if(b == 20)
    tbutton.setLabel("0");
    else if(b == 21)
    ubutton.setLabel("0");
    else if(b == 22)
    vbutton.setLabel("0");
    else if(b == 23)
    wbutton.setLabel("0");
    else if(b == 24)
    xbutton.setLabel("0");
    else
    ybutton.setLabel("0");

    k = 1;
    restart();
    }

    public void win()
    {
    j = 1;
    l = 1;
    restart();

    labelb.setText("You Win");
    labelc.setText("Total Score: " + totalscore);

    startbutton.addActionListener(this);

    k = 1;
    restart();
    }


    public void restart()
    {
    if(j == 1)
    {
    abutton.setLabel(" ");
    bbutton.setLabel(" ");
    cbutton.setLabel(" ");
    dbutton.setLabel(" ");
    ebutton.setLabel(" ");
    fbutton.setLabel(" ");
    gbutton.setLabel(" ");
    hbutton.setLabel(" ");
    ibutton.setLabel(" ");
    jbutton.setLabel(" ");
    kbutton.setLabel(" ");
    lbutton.setLabel(" ");
    mbutton.setLabel(" ");
    nbutton.setLabel(" ");
    obutton.setLabel(" ");
    pbutton.setLabel(" ");
    qbutton.setLabel(" ");
    rbutton.setLabel(" ");
    sbutton.setLabel(" ");
    tbutton.setLabel(" ");
    ubutton.setLabel(" ");
    vbutton.setLabel(" ");
    wbutton.setLabel(" ");
    xbutton.setLabel(" ");
    ybutton.setLabel(" ");
    }

    if(l == 1)
    {
    hlabel.setText(" ");
    ilabel.setText(" ");
    jlabel.setText(" ");
    aalabel.setText(" ");
    bblabel.setText(" ");
    cclabel.setText(" ");
    ddlabel.setText(" ");
    eelabel.setText(" ");
    fflabel.setText(" ");
    hhlabel.setText(" ");
    iilabel.setText(" ");
    zlabel.setText(" ");
    zzlabel.setText(" ");
    zzzlabel.setText(" ");
    alabel.setText(" ");
    blabel.setText(" ");
    clabel.setText(" ");
    dlabel.setText(" ");
    elabel.setText(" ");
    flabel.setText(" ");
    glabel.setText(" ");
    labeld.setText(" ");
    labelf.setText(" ");
    labelff.setText(" ");
    }

    if(k == 1)
    {
    temporaryint = 0;
    counterzero = 0;
    total = 0;
    total2 = " ";
    countz = " ";
    temp = " ";
    score = 1;
    score2 = " ";
    numtotal = 0;
    secnumtotal = 0;
    level = 0;
    totalscore = 0;
    del = 1;

    for(int o = 0; o < 24; o++)
    array[o] = 0;
    }

    j = 0;
    l = 0;
    k = 0;
    }

    public void setvalue()
    {
    if(del == 0)
    {
    score = score * temporaryint;
    score2 = Integer.toString(score);
    labelf.setText(score2);

    if(temporaryint > 1)
    secnumtotal = secnumtotal + 1;

    if(secnumtotal == numtotal)
    {
    bnlbutton.addActionListener(this);
    pausegame();
    }

    if(temporaryint == 0)
    {
    j = 1;
    restart();
    }
    }
    }

    public void windowClosing(WindowEvent e)
    {
    dirbutton.addActionListener(this);
    Frame aframe = (Frame)e.getSource();
    aframe.dispose();
    }

    public void windowClosed(WindowEvent e){}
    public void windowDeiconified(WindowEvent e){}
    public void windowIconified(WindowEvent e){}
    public void windowOpened(WindowEvent e){}
    public void windowActivated(WindowEvent e){}
    public void windowDeactivated(WindowEvent e){}

    public void pausegame()
    {
    del = 1;
    labeld.setText("You went up a level");
    labelcc.setText(" Click Begin new level");
    labeldd.setText("to start new level");
    }
    }

    HTML file:
    <HTML>
    <APPLET CODE = "voltorbflip.class" WIDTH = 1024 HEIGHT = 768>
    </APPLET>
    </HTML>
     
    #1343 DimmestBread, Jun 12, 2010
    Last edited: Jun 13, 2010
  4. Benji

    Benji Ancient
    Senior Member

    Messages:
    2,311
    Likes Received:
    4
    Jesus.
    How long did that take you?
     
  5. DimmestBread

    DimmestBread Ancient
    Senior Member

    Messages:
    1,504
    Likes Received:
    0
    Overall, probably a month. A couple weeks to get it working well, then I spent another week or so just cutting down the amount of lines there were. It used to be twice as long, and I'm still working on cutting down the number of lines. Needless to say, it got me an A. The real pain was getting everything in the correct order because at one time, I had it all working but certain things weren't going in order so I had to do a lot of copy pasting because I had to move things up like one line.

    things I am working on:
    -when you get a zero, I want to import an image of a voltorb onto the button instead of just a zero showing up. I need to figure out how to put images on buttons though.
    -cutting down the amount of code
    -making it easier to follow and read
    -Maybe make it so you have three lives on each level or something like in the game how you don't go down to level one if you lose.
     
    #1345 DimmestBread, Jun 12, 2010
    Last edited: Jun 12, 2010
  6. Benji

    Benji Ancient
    Senior Member

    Messages:
    2,311
    Likes Received:
    4
  7. AceOfSpades

    AceOfSpades Talented
    Forge Critic Senior Member

    Messages:
    3,552
    Likes Received:
    2,842
    I actually kind of like all of them except for Munna and Gear... they are huge disappointments.
     
  8. Gr4phix

    Gr4phix Ancient
    Senior Member

    Messages:
    1,453
    Likes Received:
    4
    I really hate all these new Pokemon, they're just plain ugly! Mamepato is just another copy off of Pidgey, and it looks like a turkey and a Starly had a damned Baby for crying out loud!

    Hihidaruma..? Really? That thing looks like a gorilla and an Infernape had a baby. -.-" Oh, and it's Premature.

    These new Pokemon are really a big disappointment for me.
     
  9. Benji

    Benji Ancient
    Senior Member

    Messages:
    2,311
    Likes Received:
    4
    These are my least favorite too.
    My favorite so far is meguroko, he better have an awesome evolution, his typing is excellent.
     
  10. Chron

    Chron Ancient
    Senior Member

    Messages:
    1,325
    Likes Received:
    3
    Most of the new Pokemon are disgraceful. I want Pokemon that actually look normal instead of retarded ass things like Munna. Mamepato is an exact copy of a real world pigeon. There's practically no difference at all. Gear is what I'd expect to see if a Bronzor bred with a Magnemite. Hihidaruma is nearly as bad as Munna appearance wise. I hope their evolutions can add some credibility to them. Now onto the good side. Shimama looks pretty cool. I'd be happy if it's evolution was some godly thunder horse. Meguroko is also looking sweet. I'd be happy if it didn't have an evolution but if it does I'd expect it to look pretty beastly.
     
  11. AceOfSpades

    AceOfSpades Talented
    Forge Critic Senior Member

    Messages:
    3,552
    Likes Received:
    2,842
    Serebii.net - Where Legends Come To Life


    Monday: Final Black & White Information & Next Month's CoroCoro + Clear Pictures


    14-06-2010- 15:58 BST / 10:58 EDT by Serebii
    Be sure to check the past few updates, it has been a big week and we should get crisp pictures tomorrow. E3 is tomorrow so there will be news about the currently unreleased games in the US.
    Also, in the Pokédex, I have recently been made aware that we missed a few move tutor moves on a couple of dozen Pokémon which then got translated across the web. I have since rectified this and the Pokédex should now be 100% accurate. Since the new Black & White details have been out, such as the starters, the Chatroom & WiFi Chatroom have been booming with discussion & trade respectively so be sure to visit them.
    Edit @ 16:35; Clearer Pictures Added | Edit @ 17:15; Details about C-Gear added

    [​IMG]
    In The Games Department


    Pokémon Black & White - Transfer Method Mentioned
    Hidden away within CoroCoro's page about Celebi & Zorua in Black & White, there is a screenshot that gives some minor details about the transfer method. In the games, there is a machine called the Pokémon Transfer Machine (転送マシンでポケモン). The screenshot simply states that Celebi is being transferred through the Pokémon Transfer Machine. This appears to be the method of transferring the Pokémon from your 4th Generation games to your 5th Generation ones. This is to be done over the standard local wireless and appears to be one at a time. It is necessary to send Celebi & the shiny beasts obtained from the 13th movie over to Black & White to obtain Zorua & Zoroark. It is currently unknown if there are any limits to the Pokémon Transfer Machine similar to the original Pal Park restrictions in Diamond & Pearl
    The official site also elaborates into the C Gear. It also shows on the menu and in the C-Gear that there are three methods of communication; Wireless, WiFi and IR (InfaRed) and you can use the C Gear with all three. These options are shown in the battle menu so it'll be able to tell when you're battling in any of those. These options are running while you're in actual gameplay as opposed to in a Union Room. To what extent, is not yet known.
    In addition to that, the preview page for CoroCoro simply states that it will contain a variety of new bits of information, some pertaining to the adventure. It does not go into specifics.


    [​IMG]
    In The Games Department


    Pokémon Black & White - Pictures & Details
    The official site has just updated with the information from CoroCoro and has included a batch of crisp screenshots. These screenshots don't show anything we haven't seen before but have been added to the Pre-Release Picture page. However, they do confirm that the battle screen does have a tab to detect the weather allowing you to easily see what boosts and/or hinders you.
    Click the picture to go to the page.



    Until Next Time, See Ya

    [​IMG]

    Sunday: Black & White Info Consolidation & Pokémon of the Week


    13-06-2010- 15:23 BST / 10:23 EDT by Serebii
    It has been quite a week. Will be at work to convert the ItemDex to the new style within the next couple of days. We should also get clearer Black & White shots on Tuesday, the same day of the Nintendo E3 Conference. Since the new Black & White details have been out, such as the starters, the Chatroom & WiFi Chatroom have been booming with discussion & trade respectively so be sure to visit them.
    [​IMG]
    In The Games Department


    Pokémon Black & White - CoroCoro July Issue
    Following on from Friday's big reveal of 7 brand new Pokémon and a variety of tidbits about the game itself, I have begun updating our Black & White section with the details. In addition to the New Pokémon Page, I have also updated the New Attacks & New Ability pages with the new information, including details on Hihidaruma's ability Encourage which I inadvertantly missed on Friday. I have also updated the Isshu Page with some new areas as well as the region map. I have also made a page detailling the new WiFi Features. Finally, I have updated the Zoroark Event Page with new details and created a Zorua Event Page. If you have any ideas for Black & White sections, let me know and I shall endeavor to add them. Click the picture to go to our main Black & White page or use the links to go to each respective page

    [​IMG]
    In The Pokémon of the Week Department


    Who's That Pokémon
    Once again going into the 4th Generation Competitive Battling strategies, we are covering our one-hundred & seventieth Pokémon. Today, we are covering a Pokémon introduced within the third generation. It normally walks on its four limbs, except when it is about to battle. It has a longstanding genetic feud with all Seviper and if it sees one, it will immediately stop whatever it's doing and battle one. So here it is, the one hundred & seventieth featured Pokémon, Zangoose.


    Until Next Time, See Ya
     
  12. DimmestBread

    DimmestBread Ancient
    Senior Member

    Messages:
    1,504
    Likes Received:
    0
    Has anyone tried to use ambipom as a lead. I think that with its speed, moderate attack, abitlity technician, and double hit, it can be a very good lead.
     
  13. V

    V Ancient
    Senior Member

    Messages:
    711
    Likes Received:
    0
    Ambipom has all the makings of a great hit and run lead in the UU and, in all honesty, does that job rather well. However, I don't like him because I never took a liking to Fake Out, just wasn't my cup of tea, along with some other petty gripes. But every time I've come across an Ambipom lead, I've met it with a fair bit of challenge; they're not bad leads by any means, especially if you play your cards right and pair him up with the right back up, like a Hariyama or Steelix. Then he's just a pain in the ass to deal with.
    EDIT: I'm strictly talking UU, here by the way. More often than not, Ambipom gets rocked in the OU because of his lack of defenses.
    EDIT#2: Oh and I've never actually used him in competitive matches lol. I've tried him out in-game and didn't like him. But all the ones I've seen others use were rather good leads.
     
    #1353 V, Jun 19, 2010
    Last edited: Jun 19, 2010
  14. halo kid

    halo kid Ancient
    Senior Member

    Messages:
    1,065
    Likes Received:
    1
    Does anyone else have/use shoddy battle? im one the smogon server and doing quite good,my record is around 85% wins.
     
  15. Benji

    Benji Ancient
    Senior Member

    Messages:
    2,311
    Likes Received:
    4
    I used to, I havn't done it in a while.
     
  16. V

    V Ancient
    Senior Member

    Messages:
    711
    Likes Received:
    0
    Same as Benji. Used to. Not nearly as much nowadays. Hell, I haven't even played pokemon on DS in a while now. I'm tempted to go find my DS right now. However, Shoddy is where I learned many of my competitive strategies.
     
  17. Chron

    Chron Ancient
    Senior Member

    Messages:
    1,325
    Likes Received:
    3
    I've also stopped playing my Ds for a while now too. I rarely ever play HG anymore but I'm thinking of starting a new game. The only downside to this is that I will lose my Weavile which I've tried hard to get the right moves for. Now that I think of it, I think I'll start a new game and try to get a Shiny Sneasal to add to my team on that playthrough.
    Would any kind person like to RNG Abuse me one for when I need it?
     
  18. Youtuber

    Youtuber Ancient
    Senior Member

    Messages:
    1,581
    Likes Received:
    2
    Started to play again..my cousin brought over his jailbroken Ipod so I've been playing some emulator Ruby.

    's quite fun.
     
  19. Klaydude11

    Klaydude11 Ancient
    Senior Member

    Messages:
    1,522
    Likes Received:
    0
    I have gotten really bored with pokemon. All I have to do is get the national pokedex which includes hatching eggs and changing the time of day just to find one pokemon. I wanna do this legit. I have like 50ish pokemon left to catch on Pearl. If I get really bored imma do that.
    ---
    I think it's Pigglez that will get you any shiny pokemon you want. He'll breed it so if neither of you have the pokemon you want then... find it.
     
  20. Chron

    Chron Ancient
    Senior Member

    Messages:
    1,325
    Likes Received:
    3
    Go get a Nintendo DS bro.

    I'll more than likely ask him if he could get me one later, once I can be bothered to ask. :p

    So since I started a new game on HG and Platinum, I thought I'd share my teams with the few people that actually view this thread still.
    HG:

    • Slowpoke lvl 11
    • Quilava lvl 24
    • Zubat lvl 12
    Platinum:

    • Empoleon lvl 39
    • Leafeon lvl 27
    • Togepi lvl 18


    I'm not really impressed with the levels of my Zubat and Slowpoke on HG at the moment, considering I'm in Goldenrod city. By the time I get to Ecruteak city I hope to have Quilava at level 30 or higher and Slopoke and Zubat at level 25 or up.

    I'm pretty pleased with my progress through Platinum. I've got 3 badges and I'm currently in Solaceon town. I think my levels for the moment are all at a decent level and by the time I get to the 4th gym my togepi will probably be trained up quite a few more levels. I hope to have Empoleon at around level 44, although I don't really think he needs to be leveled up that much. I'd like Leafeon to be at level 35 or higher and I want Togepi to be around the mid 30s aswell, hopefully it has evolved into a togetic by then so I can have some coverage on the fighting pokemon at the gym.
     

Share This Page