global name_replace
name_replace = True
global name_replace_health
name_replace_health = 1
def name_replace():
  #Blank1.0
  enemy_alive = True
  enemy_name = "name_replace"
  lower_dm = 1
  uper_dm = 2
  enemy_EXP = 1000
  #Global verables v
  global name_replace
  global damage
  global mana
  global health
  global Dead
  global users_turn
  global health_cap
  global mana_cap
  global EXP
  global enemy_crit
  global print_crit
  global name_replace_health
  #Kills the player if they are less then 0 health
  if health <= 0:
      Dead = True
      users_turn = False
  clear_output(True)
  #Asky art print v
  print()
  name_replace_health = name_replace_health - damage
  #Displays your damage v
  print("You did: ", damage, "damage")
  if print_crit == True:
    print("You got a critical hit!!!!")
    print_crit = False
  damage = 0
  if name_replace_health >= 1:
    enemy_alive = True
  else:
    clear_output(True)
    print("You have defeted the enemy!")
    EXP = EXP + enemy_EXP
    damage = 1
    enemy_alive = False
  dm = random.randrange(lower_dm,uper_dm)
  if enemy_crit == True:
    dm = dm * 2
    print("You got crit!!!!")
    enemy_crit = False
  print("You took: ", dm, "damage")
  health = health - dm
  print(enemy_name,":",name_replace_health , "Your HP:", health,"/",health_cap, "Your Mana:", mana,"/",mana_cap)
  if damage == 0 and Dead == False:
    Attack()
  damage = 0
  if enemy_alive == False:
    name_replace = False
    Map()