MongooseA text-based world full of questionable inventions.

All help topics · Link to this topic

Showing help on 'switch_player()'

Syntax: switch_player(OBJ <object1>, OBJ <object2> [, INT <silent>])

Silently switches the player associated with this connection from <object1> to <object2>. <object1> must be connected and <object2> must be a player. This can be used in do_login_command() verbs that read or suspend (which prevents the normal player selection mechanism from working.

If <silent> is true, no connection messages will be printed.

The programmer must be a wizard, or E_PERM is raised. E_INVARG is raised if <object1> and <object2> are the same object, if <object1> is not connected, if <object2> is not a player, or if <object1> has no task queue to transfer.