[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]

*/

.