ID:174411
 
obj/Twister_LV1
icon = 'Items.dmi'
icon_state = "Scroll"
worth = 50
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
Move(usr.loc)
Learn()
src.verbs+= /mob/spells/verb/Twister_LV1
okay thats the code for learning a spell but the word doesnt appear in the Magic/techniques tab it appears in the command tab and i dont want that how do i fix it and add in so only mages and learn it too?
I dont get what your probleme is...
Darkfirewolf5 wrote:
obj/Twister_LV1
icon = 'Items.dmi'
icon_state = "Scroll"
worth = 50
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
Move(usr.loc)
Learn()
src.verbs+= /mob/spells/verb/Twister_LV1
okay thats the code for learning a spell but the word doesnt appear in the Magic/techniques tab it appears in the command tab and i dont want that how do i fix it and add in so only mages and learn it too?

I think i know what you want.

1st/ You have to add
set category = "Magic/techniques"
underneath the Twister_LV1 verb, not here.

2nd/ To make only mages can learn it, under the Learn() verb on the object, make a
if(src.class == "mage")
src.verbs += /mob/spells/verb/Twister_LV1
else
src << "You can not learn this as you are not a mage"
but i dont know what your other code is, so you may have to adjust it