ID:167090
 
Can someone please tell me theverb for Get()? Im trying to make it so that i can pick up my sword and shield i have on the map but it says that it is undefined prob or verb.. so can anyone please tell me the verb for get.. please and ty

EDIT::Since your gonna look at it anyway.. can someone help me with a code to make it so that enemys attack you back.. and drop an item or gold when killed..


Grim
Can't just ask for the code, since there is no "one" way to do something.

my suggestion is this:

obj/verb/get()
set src in oview(1)
src.Move(usr) // takes the obj and places it into the usr's contents


Easy and simple.

After this, go read the DM Guide and look at few tutorials.
Grimson10 wrote:
Can someone please tell me theverb for Get()? Im trying to make it so that i can pick up my sword and shield i have on the map but it says that it is undefined prob or verb.. so can anyone please tell me the verb for get.. please and ty

EDIT::Since your gonna look at it anyway.. can someone help me with a code to make it so that enemys attack you back.. and drop an item or gold when killed..


Grim

About dropping item/gold after they get killed. You'll need a death check proc, following that obj/gold and obj/whatever_item made, and use

proc/Deathproc()
if(src.hp <= 0){new /obj/gold(src.loc)}

Something like that, but it depends on your code.

Check out the tutorials. Zilal's one is a pretty good read.
In response to Xoule
I already have a good DeathCheck() for my mob, but do i need another one for my monsters too?
In response to Grimson10
Grimson10 wrote:
I already have a good DeathCheck() for my mob, but do i need another one for my monsters too?

No. Not at all. Include it under the same DeathCheck() but when your in that, us a simple if() statement to see if the mob has a client. if not, simply delete the mob and create a new one after a while.