#include <iostream>
#include <iomanip>
#include <stdlib.h>
#include <string>
#include <time.h>
usingnamespace std;
int main()
{
srand (time(NULL));
string userName;
string answer;
int ammo = 10;
int health = 10;
int healthLchance = rand() %100+1;
cout << "Intro Text Here\n";
cout <<"Enter Character Name Here\n";
cin >> userName;
cout <<"Event 1 Here\n";
cin >> answer;
if (answer == "shoot")
{
ammo--;
cout <<"You have " <<ammo<< " bullets left\n";
}
elseif (answer == "run")
{
if (healthLchance < 50);
{
health--;
cout <<"You try your hardest but one of the zombies hites you, you now have" <<health<< " left";
}
elseif (healthLchance > 50);
{
cout <<"You get away unscathed, you still have "<<health<< " health\n";;
}
}
system ("pause");
}