PlayerF(mob/M)
switch(input("Which command?",text)in list("Battle","Majick","Item","Run","Switch character"))
if("Battle")
M.MonsterF(src)
if(!src.battle_options == list())
src<<"You have no physical attacks!"
src.PlayerF(M)
return
else
var/list/L = src.battle_options
if(L.len)
var/battle/battleskill/I = input(src, "Pick a skill to use","Skill") in L + "Back"
var/path = I.skillpath
switch(I)
call(M,path)(src)
if(I == "Back")
src.PlayerF(M,src)
if("Majick")
M.MonsterF(src)
if(!src.majick_options == list())
src<<"You have no majicks!"
src.PlayerF(M)
return
else
var/list/L = src.majick_options
if(L.len)
var/battle/battleskill/I = input(src, "Pick a skill to use","Skill") in L + "Back"
var/path = I.skillpath
call(M,path)(src)
if(I == "Back")
src.PlayerF(M,src)
if("Run")
M.MonsterF(src)
var/runa = 0
runa = rand(1,9)
if(runa >= 4)
src.EndBattle(src,M)
if("Switch characters")
M.MonsterF(src)
/*var/mob/person = */input("Which character")in src.party + "Back"
//switch(person)
if("Ehj")
if(src.character == "Ehj")
src<<"Ehj is already on the battle-field!"
src.PlayerF(M,src)
sleep(30)
var/mob/Ehj/E
src.strength = src.bstrength + E.strength
src.maxstrength = src.strength
src.defense = src.bdefense + E.defense
src.maxdefense = src.defense
src.maxlimit = src.blimit + E.limit
src.maxhealth = src.bhealth + E.health
src.agility = src.bagility + E.agility
src.maxagility =src.bagility + E.agility
src.majick = bmajick + E.majick
src.majick_options = list(EMO)
src.battle_options = list(EBO)
src.icon_state = "Ehj"
if("Soj")
sleep(30)
src.strength = src.bstrength + 25
src.maxstrength = src.strength
src.defense = src.bdefense + 19
src.maxdefense =src.defense
src.agility = src.bagility + 2
src.maxagility = src.agility
src.limit = src.blimit + 5
src.maxlimit = src.limit
src.health = src.bhealth + 19
src.maxhealth = src.health
src.majick = src.bmajick - 5
src.maxmajick = src.bmajick
src.icon_state = "Soj"
src.majick_options = list(SMO)
src.battle_options = list(SBO)
if("Back")
src.PlayerF(M,src)
Problem description:
I expect a pop-up box with a list in each of the lines that say var/blahblah to result in a pop-up box