name = text_prompt("What is your name?")
class = prompt("What character class would you like to be?", "Knight", "Ranger", "Mage")
loc = locate(17, 35, 1)
camera.pixel_x = 24
if (class == "Knight")
get_item(new /item/health_potion(2))
get_item(new /item/mana_potion(2))
get_item(new /item/armor())
get_item(new /item/helmet())
equip(get_item(new /item/sword()))
abilities += new /Ability/MeleeAttack()
base_speed = 3
set_money(20)
if (class == "Archer")
get_item(new /item/health_potion(2))
get_item(new /item/armor())
get_item(new /item/helmet())
get_item(new /item/dagger())
abilities += new /Ability/ShootArrow()
base_speed = 5
set_money(20)
if (class == "Mage")
get_item(new /item/health_potion(2))
get_item(new /item/mana_potion(2))
get_item(new /item/armor())
get_item(new /item/helmet())
get_item(new /item/dagger())
abilities += new /Ability/Fireball()
base_speed = 4
set_money(20)
Problem description:
Hello, I am posting here because I can't get class selection to work properly. I am trying to get it so that each class starts off with set amount of items and certain skills. But the I seem to be doing this wrong. Could anyone help?