I have the mob var:
mob
var
list/AVM
And I want it so that if they build a Hovel it would add "Peasants" to the list, so I put :
usr<<"A Hovel was built!"
usr.Wood -= 25
usr.AVM += "Peasants"
I then wanted it so that you could recruit anything from that list, in this case Peasants.
So I put :
verb
Recruit(recruits as null|anything in usr.AVM)
set src in oview(1)
switch(recruits)
if("Peasant")
if(usr.Mesatta >= 5)
new /mob/Unit/Peasant (/obj/Town_Center)
usr.Mesatta -= 5
usr<<"You got one Peasant!"
But this doesn't work!! It doesn't even tell me that I got one Peasant!
Please Help!
~GokuSS4Neo~