ID:178754
 
How would I make a proc that lets you pick something from one of these:

obj/superpowers
superhuman
superstrength
verb/SuperStrengthPunch()
set src in usr
usr << "Super punch dude!"
flgiht
verb/Flgiht()
set src in usr
usr << "You are flying!"

Mutant
Teleport
verb/teleport()
set src in usr
usr << "BAMF! YOU TELEPORTED!"
Shapeshifting
verb/claws()
set src in usr
usr << "WOAH!"


mob/verb/pickpower()
var/powers = input("powers") in list (typesof(/obj/superpowers))
usr << "[powers]"


How would I make it so that you can pick a power from the obj/superpowers type? And if you pick a super human type power, you can't pick a Mutant power? Thanks for reading.


-Sariat
Running out the door, or I'd try to whip up an example. In the meantime, look up typesof in the reference.