After like 30 minutes 'cuz I'm a noob, I found out how to add something to the user's spell inventory in one line:
usr.spells+= new /mob/spells/Magic_Missile(usr.spells)
But now, how can I make it so that in another place, it removes that spell from the user's spell inventory in one line?
I just tried this method, myself:
usr.spells-= /mob/spells/Magic_Missile
but it didn't work =(.
ID:159087
May 15 2009, 7:22 am
|
|
You should locate() the item and then remove it.
There could be an easier way I can't remember