ID:162054
 
*The following code has been modified to exclude irrelevant sections which have shown to have no effect.


Why does this
mob{
Move(){
if(istype(src, /Player)){

} else {
//NPCS
..();
}
}
}


Get called 499514 times when a player first logs in, while this:

mob{
Move(){
if(istype(src, /Player)){
..();
} else {
//NPCS
..();
}
}
}


Only gets called once?

The implication here seems to be if ..() isn't called when a player first logs in, it will be called 499514 times, and then the game will continue on like normal. Why...
The default action of Login() is to Move() the mob into every turf until it finds one which succeeds. If Move() can't succeed, then it will eventually try every turf.

Also: Move() should return a value, indicating success or failure.
In response to Garthor
Garthor wrote:
The default action of Login() is to Move() the mob into every turf until it finds one which succeeds. If Move() can't succeed, then it will eventually try every turf.

Also: Move() should return a value, indicating success or failure.


I never knew that. Should be in the DM guide.