Basically what I want to do is detect whether a mob has an item within its contents list and also have a proc that edits one of the objects variables.
I realise a simpler way would be to have a variable in the mob itself equalling 1 when the obj has been picked up and 0 when it has not or when it has been dropped, but to be honest I wish to do as I stated above.
An example of what I would like to achieve is this:
An obj has a variable named power with a value of 1000 and wish that when a user uses a verb on another obj on the map the power level decreases by 100 and the other obj does something.
Basically I have this so far for the ob with power so far:
obj/energy_device
name = "Energy Device"
power = 1000
suffix = "Contains Power"
icon = 'objects.dmi'
icon_state = "energy device"
New()
src.suffix = "Power: [src.power]"
verb
checkpower()
set name = "Check Power"
usr<<"The [src]'s power level is: [src.power]"
src.suffix = "Power: [src.power]"
DblClick()
if(src.loc == usr)
Move(usr.loc)
usr<<"You drop the [src]"
else
if(get_step_away(src,usr,1))
Move(usr)
usr<<"You pick up the [src]"
Please help me, Thanks in Advance.
Or were you trying to get another type of answer? >_>
- GhostAnime