//take variables from from
function Character() {
  this.name = "idkMyBFFGil";
  this.health = 100;
  this.attack = 10;
  this.defense = 10;
}
var hero = new Character();

//initialize character
function initialize_character() {
  hero.name = document.getElementById('fname');
  hero.health = 100; // Starting health
  hero.attack = document.getElementById('stats'); // document.getElementById("attack").value
  hero.defense = 10 - document.getElementById('stats'); // document.getElementById("defense").value
}

function switch_to_gameplay() {
  document.getElementById('initialization').style.display = "none";
  document.getElementById('gameplay').style.display = "block";
}

function update_status() {
  // document.getElementById("health").value = hero.health
}

function gameplay() {
  wolvesAttack();
  banditsAttack();
  //pathFunction3();
  //pathFunction4();
  //pathFunction5();

  //finalBoss();
}

function run () {
  initialize_character();
  switch_to_gameplay();
  gameplay();
}

//take variables from from
function Character() {
  this.name = "idkMyBFFGil";
  this.health = 100;
  this.attack = 10;
  this.defense = 10;
}
var hero = new Character();

//initialize character
function initialize_character() {
  hero.name = document.getElementById('fname');
  hero.health = 100; // Starting health
  hero.attack = document.getElementById('stats'); // document.getElementById("attack").value
  hero.defense = 10 - document.getElementById('stats'); // document.getElementById("defense").value
}

function switch_to_gameplay() {
  document.getElementById('initialForm').style.display = "none";
  document.getElementById('gameplay').style.display = "block";
}

function update_status() {
  // document.getElementById("health").value = hero.health
}

function gameplay() {
  wolvesAttack();
  banditsAttack();
  //pathFunction3();
  //pathFunction4();
  //pathFunction5();

  //finalBoss();
}

function run () {
  initialize_character();
  switch_to_gameplay();
  gameplay();
}

Change id to match what index.html
Change id to match what index.html
