[Share]Final fantasy Random encounter simulator

Posts 1–15 of 15 · Page 1 of 1
[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]
Instant dead is the shit.
Quote Originally Posted by Auxilium 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.
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
Quote Originally Posted by Auxilium 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
/* lul guise lolland is a male ass asswrangler */

cool
Quote Originally Posted by 'Bruno View Post
/* lul guise lolland is a male ass asswrangler */

cool
Why, patrick? ;_;
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...
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
Quote Originally Posted by Auxilium 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.
There is this 1 indian guy, but he doesnt know much more than hello world
Quote Originally Posted by Auxilium View Post
There is this 1 indian guy, but he doesnt know much more than hello world
You still have me patrick /yh
Quote Originally Posted by Void View Post
You still have me patrick /yh
fosho i do
Quote Originally Posted by Auxilium View Post
There is this 1 indian guy, but he doesnt know much more than hello world
we have a computer science class :x
Quote Originally Posted by mookamoka3 View Post
we have a computer science class :x
well i'm only in middle school
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Talk with us