This may seem really stupid, but if any of you know this it would be great.
I use Zelda as an example, but when you talk to sombody in the game, does the program do somthing like this or am i totaly worng...
Code:
#include<windows.h>
#include <iostream>
#include <string>
void girltalk();
extern void girltalksenta(); // get the text from another file
string player;
int main()
{
girltalk();
return 0;
}
void girltalk()
{
if (player) // basicly this would be if player pressed button to talk
{
girltalksenta(); // get the info, go to that function
return;
}
return;
}
any ideas? I am intrested to know if you think I maybe correct