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.
ID:169212
![]() Jul 19 2005, 9:21 am (Edited on Jul 19 2005, 12:25 pm)
|
|
![]() Jul 19 2005, 12:26 pm
|
|
Anyone able to help here? Please? 8)
|
mob/verb/Write_Down() |
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. |
I believe you are asking for this...
mob/Login() 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?? |
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 |
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 |