ID:165779
Nov 3 2006, 1:01 pm
|
|
Well I'm looking for a way for a mob to create an object, but not like Building in Icon games or gms summoning/creating them but more like..... A crafting kind of thing! Where you can just make objects if you have certain type of Objects in your inventory. Can someone give me an example about how I would do this?
|
Vito's is one way of doing it, but I prefer another way. The way I setup mine makes the item seems previously "useless" until you get near a anvil, gain a tool, or whatever you want it atatched to:
var/obj/o = locate(/obj/Item) in src.contents // makes a new var called o = a "Item" in the palyer's content I also could have sworn this was somewhere under the Developer FAq. If not, I'll be sure to add something.. |
Then the player can activate the "craft" verb and turn the log into something useful. The code for making something useful, of course, is left out - you should be able to fill that in.
--Vito