mob
door
icon='door.dmi'
Bump(mob)
usr<<" SCOTT PAID MONEY!!"
i dont know what im doin
ID:176862
![]() Dec 2 2002, 1:30 pm
|
|
<code> obj //Or turf door Bumped(var/atom/movable/A) //Overrides the basic Bumped() proc. if(ismob(A)) //If A is a mob. A << " SCOTT PAID MONEY!!" //Then display the totally nonsensical message to it. atom/proc/Bumped(atom/movable/A) //Defines the Bumped() proc for everything that you could bump into. mob Bump(atom/A) //When you bump something. A.Bumped(src) //Call that something's Bumped() proc. Usr is not acceptable in ANY proc that isn't a verb. </code>
[edit: Oops, ismob(A), not istype(A,/mob/).] |
SkylineR34 wrote:
mob You're using Bump() backwards. Bump() belongs to the thing that's moving, and the argument is the thing it bumped into: atom/movable Lummox JR |
door
icon='door.dmi'
Bump(mob)
usr<<" SCOTT PAID MONEY!!"
that should be right, but this doesnt work either