Results 1 to 15 of 15
  1. #1
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy

    [Share]Final fantasy Random encounter simulator



    Yes. In the early FF games (1-6), they randomly took a number and that was the tiles you could walk before encounter. You can test this on an emulator. Get FF V for super famicom or whatever, make a save state, and each time the encounters will be after the same number of tiles walked. enough talk!!

    [Highlight=C++]//i hope you guise appreciate my sloppy code, its what i do best <<33
    #include <iostream>
    #include <windows.h>
    #include <ctime>
    #include <cstdlib>

    using namespace std;
    /* lul guise lolland is a male ass asswrangler */
    class encounter
    {
    public:
    void SetEncounter(int SE) {cSE = SE;}
    int GetEncounter() {return cSE;}
    private:
    int cSE;
    };
    /* i wanted to be dabids junior but nobody gave the name change </3 */
    int main()
    {
    srand(time(0));
    int tiles = (rand() % 23)+1;
    encounter e1;
    cout << "Welcome to the Final Fantasy Random Encounter Simulator by Patrick\n";
    cout << "Controls: Up, Down, Left, Right Keys\n";
    e1.SetEncounter(tiles);
    while(1)
    {
    Sleep(150);
    if ((GetAsyncKeyState(VK_UP)) || (GetAsyncKeyState(VK_DOWN)) || (GetAsyncKeyState(VK_LEFT)) || (GetAsyncKeyState(VK_RIGHT))) //<3
    {
    cout << e1.GetEncounter() << " steps until a fight\n";
    e1.SetEncounter(e1.GetEncounter()-1);

    if(e1.GetEncounter() == -1)
    {
    cout << "Fight! Press Enter";
    cin.get();
    cout << "You died. Game over\n";
    return 0;
    }

    }
    }
    return 0;
    }[/Highlight]
    Last edited by Auxilium; 02-05-2011 at 06:46 PM.

  2. #2
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Instant dead is the shit.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  3. #3
    mookamoka3's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    110
    Reputation
    14
    Thanks
    13
    Quote Originally Posted by Koreans View Post


    Yes. In the early FF games (1-6), they randomly took a number and that was the tiles you could walk before encounter. You can test this on an emulator. Get FF V for super famicom or whatever, make a save state, and each time the encounters will be after the same number of tiles walked. enough talk!!

    [Highlight=C++]//i hope you guise appreciate my sloppy code, its what i do best <<33
    #include <iostream>
    #include <windows.h>
    #include <ctime>
    #include <cstdlib>

    using namespace std;
    /* lul guise lolland is a male ass asswrangler */
    class encounter
    {
    public:
    void SetEncounter(int SE) {cSE = SE;}
    int GetEncounter() {return cSE;}
    private:
    int cSE;
    };
    /* */
    int main()
    {
    srand(time(0));
    int tiles = (rand() % 23)+1;
    encounter e1;
    cout << "Welcome to the Final Fantasy Random Encounter Simulator by Patrick\n";
    cout << "Controls: Up, Down, Left, Right Keys\n";
    e1.SetEncounter(tiles);
    while(1)
    {
    Sleep(150);
    if ((GetAsyncKeyState(VK_UP)) || (GetAsyncKeyState(VK_DOWN)) || (GetAsyncKeyState(VK_LEFT)) || (GetAsyncKeyState(VK_RIGHT))) //<3
    {
    cout << e1.GetEncounter() << " steps until a fight\n";
    e1.SetEncounter(e1.GetEncounter()-1);

    if(e1.GetEncounter() == -1)
    {
    cout << "Fight! Press Enter";
    cin.get();
    cout << "You died. Game over\n";
    return 0;
    }

    }
    }
    return 0;
    }[/Highlight]
    Not to flame or anything.... But even I can program a random encounter :x

    whats the point of this? o.O


    prolly gunna sound like a dumbass now. 20 bucks there's a deeper meaning to this thread.

  4. #4
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    You are sounding like a dumbass because there is no deeper meaning.

    The point of this was for me to get off my lazy ass and code something since i didn't code anything since nov.

    And i might want to make a simple game with SDL that might use this
    Last edited by Auxilium; 02-05-2011 at 06:39 PM.

  5. #5
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    /* lul guise lolland is a male ass asswrangler */

    cool
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  6. #6
    mookamoka3's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    110
    Reputation
    14
    Thanks
    13
    Quote Originally Posted by Koreans View Post
    You are sounding like a dumbass because there is no deeper meaning.

    The point of this was for me to get off my lazy ass and code something since i didn't code anything since nov.

    And i might want to make a simple game with SDL that might use this
    Do it up .

    if i ever get over the c++ learning hump and figure out how to make games in something other than actionscript i'll join you :3

  7. #7
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    i don't do teams

    If im gonna have a team, itll be my close friends..so i can whine on their asses why they didnt do their crap and so we can do all nighters programming together....wait. I'm the only programmer in my school . fuck

  8. #8
    mookamoka3's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    110
    Reputation
    14
    Thanks
    13
    Quote Originally Posted by Koreans View Post
    i don't do teams

    If im gonna have a team, itll be my close friends..so i can whine on their asses why they didnt do their crap and so we can do all nighters programming together....wait. I'm the only programmer in my school . fuck
    Psh i meant i'd make my own /me

    And same for me pretty much... there's only one other programmer in my school and hes 4'9, black, and better than me.

  9. #9
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    There is this 1 indian guy, but he doesnt know much more than hello world

  10. #10
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Koreans View Post
    There is this 1 indian guy, but he doesnt know much more than hello world
    You still have me patrick /yh

  11. #11
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by Void View Post
    You still have me patrick /yh
    fosho i do

  12. #12
    mookamoka3's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    110
    Reputation
    14
    Thanks
    13
    Quote Originally Posted by Koreans View Post
    There is this 1 indian guy, but he doesnt know much more than hello world
    we have a computer science class :x

  13. #13
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by mookamoka3 View Post
    we have a computer science class :x
    well i'm only in middle school

  14. #14
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Quote Originally Posted by Brinuz View Post
    /* lul guise lolland is a male ass asswrangler */

    cool
    Why, patrick? ;_;

  15. #15
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by Lolland View Post


    Why, patrick? ;_;
    He's obviously still butt-hurt from the last time you showed him who his daddy was...
    Ah we-a blaze the fyah, make it bun dem!

  16. The Following User Says Thank You to Hell_Demon For This Useful Post:

    Auxilium (02-06-2011)