1.
mob
proc
Wander()
if(istype(src.loc.loc, /obj/fuzetsu))
src.Wander()
return
else
step_rand(src)
src.Wander()
mob
human
icon='BFcharacterfordylan.dmi'
New()
src.Wander()
2.
mob
verb
Create(O as null|anything in typesof(/obj,/mob,/turf))
set category = "Staff"
set name = "Create"
set desc="Create a new mob, or obj"
if(!O)
return
new O(usr.loc)
usr << "You Create a(n) [O]"
Problem description:
Hi. I tried to make simple randomly wandering human that can't move when it's on /obj/fuzetsu, but when /obj/fuzetsu dissapears it can walk again. First code shows my human code and wandering proc. Second code shows my creating verb.
My problem is: when I launch the game and create /mob/human nothing happens. When I do that again dream seeker crashes and closes without any message. If I do it in dream daemon, it crashes after first time using create verb. (Note: I can create without a problem any other atom with Create verb)
What's wrong here?
Now, another issue is that the line if(istype(src.loc.loc, /obj/fuzetsu)) has nothing to do with standing "on" that object. For that, you would need to use locate(), like so:
Your Create verb has nothing to do with this.