mob
pokemon
density= 1
icon = 'pokemons.dmi'
icon_state = "Charmander"
playertype = "Pokemon"
obj
Pokeball
name = "Pokeball"
icon = 'items.dmi'
icon_state = "pokeball"
density = 1
Bump(var/mob/M in oview(8))
if(M.playertype == "Pokemon")
oview(8) << "<b>[usr] has caught [M]!"
del(src)
if(istype(M,/mob))
del(src)
if(istype(M,/turf))
del(src)
if(istype(M,/obj))
del(src)
mob
verb
Throw_Pokeball()
if(usr.ballcount <= 0)
usr << "<b>Your out of pokeballs!"
else
var/C = new/obj/Pokeball
oview(8) << "<b>[usr]: Go Pokeball!"
C:loc = locate(usr.x,usr.y,usr.z)
C:owner = usr
usr.ballcount -= 1
C:dir = usr.dir
walk(C,dir)
Problem description: Well right now im just trying to make my catching system as simple as possible at the moment and when I throw the pokeball at charmander it wont say [usr]: Go Pokeball! or catch the charmander it will just hit the charmander and delete itself
As for the [usr] thing. Change the line :
to