ID:169212
 
Rather than having the trade skills stored as object verbs, I am working on a trade skill system wherein the player may buy or find recipes, then add the recipes to his or her book. As an example, Player finds a recipe in a chest. He reads it and it is revealed as a Lumber Shaping recipe. If he has a book, he can scribe it into the book, at which point he loses the scroll and the verb craft_board is added to him. I would like to know what ever happened to the verbs.Add.usr (if I am remembering at least some of it right. I have searched the forums for "Add Verbs" and all I get is verbs+= which I never used before and I dont see how to make that work either. What is the correct usage for verbs.Add, and can someone give me an example of how to add the craft_board skill once he scribes the recipe into his book, and how to make the "Trade Skill" verb panel not come up until something is in it?

Again, any and all input is appreciated, and I thank you all ahead of time for the assistance.
Anyone able to help here? Please? 8)
mob/verb/Write_Down()
for(var/obj/O in get_step(src,src.dir))
if(O.name == "Pizza" )
usr.contents += new /obj/pizza/
usr<<"You learn how to make Pizza"





obj/pizza
name="Pizza"
icon='Test.dmi'
iobj/pizza
name="Pizza"
icon='Test.dmi'
icon_state="5"
desc="Cheese,Tomatoes,Milk,Eggs,Flour"
verb
Read_Recipe()
set category = "Recipe Book"
alert("Cheese,Tomatoes,Milk,Eggs,Flour")
desc="Cheese,Tomatoes,Milk,Eggs,Flour"ike this?
In response to Kidknee
look up!
In response to Cheetoz
No, its more like this.

I want to remove the "craft_board" verb from the block of wood I have it attached to at the moment. I then want to make it so that the player must acquire a recipe book and a recipe. He will "read" the recipe, which, when he does, will add the verb to him permanently. The "Trade Skills" statpanel will only pop up if he has recipes to use.

As I have it set up at the moment, if you pick up a block of wood, you are given the craft_board verb whether you have the skill to make it or not. This has got to change heh.
In response to Kidknee
I believe you are asking for this...
mob/Login()
src.verbs-=/mob/verb/shape_wood //Or whatever...
..()

obj/Wood_Shaping_Recipe
verb/Copy()
src.verbs+=/mob/verb/shape_wood

mob/verb/shape_wood()
//stuff = here

Make modifications as necessary.
This is the basic command I used to use, with great success...

usr.verb.Add(insert verb path here)

Has this changed in the last couple of years??
In response to Flerix
Well after searching the boards I have verified that it is indeed in the format

usr.verbs.Add(verb path)

However, maybe I am not displaying the verb correctly in the statpanel I have for Trade Skills category verbs.

mob/Stat()
statpanel("Trade Skills",usr.verbs)

I have to shrug because I am at a loss
In response to Kidknee
Read this:
http://byondscape.com/ascape.dmb/LummoxJR.2002-1104/

Your rampant usr abuse needs to stop before anyone can answer your question. But, essentially, just add and remove erbs from the verbs list of a mob. verbs+=/obj/Zapper/verb/Zap, verbs-=/obj/Zapper/verb/Zap