Right now, I'm in the process of making a Capture the Flag game. What I need help with is when someone runs in to the flag, the person gets possesion of it instead of having to grab it with a verb. Sorta like when you bump into it.
~~SSJ4_Gohan_Majin
ID:268027
![]() Feb 17 2004, 7:16 am
|
|
This is my code:
mob And when I runover the flag, nothing happens. P.S. I am a horrible Coder right now! ~~SSJ4_Gohan_Majin |
Ok, I made it into a verb. No errors, but when Im next to the flag, the verb "Get" doesn't come up. Heres my code:
mob |
My only problem is that it doesn't add the overlays to the usrs icon once I pick up the flag. Code:
turf ~~SSJ4_Gohan_Majin |
For occasions when you want to check and see what your mob has bumped, you want to create a new proc that goes like this:
<code>atom/proc/Bumped() return atom/movable/Bump(atom/A) A.Bumped(src)</code> Now the Bumped() proc will be called for anything that gets bumped by something else. So if you want someone to bump the flag and move the flag to their contents, you'd do it like this: <code>obj/flag density = 1 Bumped(mob/M) if(istype(M, /mob)) src.loc = M</code> |
~Ease~