ID:174437
 
How do i make a class blocking thing that works with RPG Turtorial 2? Like Swords for Warrior and Wizards can't equip them.
mob/var/class=""

mob/Login()
switch(input("What would you like your class to be?","Class")in list("Warrior","Wizard"))
if("Warrior")
class="Warrior"
if("Wizard")
class="Wizard"
..()

obj/Sword
verb/Pick()
set src in oview(1)
if(class=="Warrior")
//do stuff here
else
usr<<"You can't pick this up"
return