Instant dead is the shit.
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.
Instant dead is the shit.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
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.
/* 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.
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
There is this 1 indian guy, but he doesnt know much more than hello world
Auxilium (02-06-2011)