mob/proc
playerturn(mob/player/P)
var/list/commands = list("Attacks","Skills","Magics","Run")
var/commandchoice = input(usr,"What do you wish to do?","Commands") in commands
switch(commandchoice)
if("Attacks")
var/list/atkcommands = usr.ATKlist
var/atkchoice = input(usr,"Which attack do you wish to do?","Attacks") in atkcommands
var/E = input(usr,"On which enemy?","Target") in targetlistt
switch(atkchoice)
if("Weak Attack")
WeakAttack(P,E)
if("Normal Attack")
NormalAttack(P,E)
if("Fierce Attack")
FierceAttack(P,E)
Problem description:
How do I make the code so that when I have just 1 type of attack in ATKlist, it doesn't automatically pick that one. For example, I want to be able to see "Weak Attack" on the selection menu even if that is the only one in the list without the program assuming that I want that.