Give_Attack(mob/M as mob in world)
set name = "Give Attack"
set category = "God"
set desc = "Give a player any attack verb"
var/varAttack
var/varVerb = input("Are you sure?","Checking") in list("Proceed","Cancel")
if(varVerb == "Cancel")
return
if(varVerb == "Proceed")
varAttack = input("What Attack?","Attack Verb") in typesof(/mob/Attacks/verb/) + list("Cancel")
if(varAttack == "Cancel")
return
varAttack += M.verbs
if(M.GM >=1)
world<<"<b><center>[usr] has given [M] an <i>Attack</i> Verb."
else
return
Problem description:
It doesn't give the verb they selected out. Can anyone help me so that it does?
2. You have an if statement for "Cancel" twice.
3. Look at the else if statement in the DM Reference. Using multiple if() statements makes multiple resource-consuming checks.
4. For boolean checking, use if(variable) for a true value, and if(!variable) for a false(empty string, null, 0) value.
5. You're adding the mob's verbs to the varAttack variable, when it should be the other way around.