ID:262701
 
Code:
obj
training_system
icon = 'icons.dmi'
icon_state = "machine"
density = 1
verb
Training()
set category = "Training"
set src in oview(1)
set name = "Monster Training"
switch(input("Training: Please choose a Monster to fight:",text) in list("Demon"))
if("Demon")
usr.movable = 0
new /mob/fighters/Demon(src)
src.loc = usr.loc
usr.movable = 1


Problem description:
Ok here's the problem
When i click on demon the the obj training_system comes on top of me instead of the monster. Can someone help me fix this.
obj
> training_system
> icon = 'icons.dmi'
> icon_state = "machine"
> density = 1
> verb
> Training()
> set category = "Training"
> set src in oview(1)
> set name = "Monster Training"
> switch(input("Training: Please choose a Monster to fight:",text) in list("Demon"))
> if("Demon")
> usr.movable = 0
> new /mob/fighters/Demon(locate(usr.loc))
> usr.movable = 1
>


O-matic
In response to O-matic
locate(usr.loc) is wrong. What you want there is just usr.loc, period. Or better yet, get_step(usr,EAST) or something just to put the monster on a different turf.

Lummox JR