ID:267226
![]() Jan 19 2003, 4:44 pm
|
|
I was wondering if their is a way to make a person not playing play or take control of the playing player.....
|
so say I put this....
mob verb Take_Over(mob/M) src.mob=M M = null this would allow the person playing choose who gets to play and SWITCH them.. not delete them right? |
I'll try it out... but if you could stick around so I can reply to tell you it works... that's if your not busy
|
hey it worked but I get an error something about mob... now I don't have an icon for the mob... that might be the prob... also is there a way to make have one persons vars change to the other persons vars?
|
I mean't I need it to switch a player with another player...
exp: A person is playing and another is only watchin not being able to move... If the person playing presses a button and he chooses for that other person to take over where ever he is... it just switchs all the person playing vars to the person not playing and lets the person not playing control that person playing... and there names stay the same... not making any one of them null.... and if the person playing gets tired he just switchs again... _>, <_<, I dunno if anyone will understand what I wrote... |
mob/verb/Switch(mob/M) That should work. Remember, Logout() and Login() will be called for both mobs every time you use this, so you might want to move things from Login() to client.New() and Logout() to client.Del(). |
This error is when person I switched with presses to switch me back to playing position.. this also makes my name the person pressing switch..
runtime error: Cannot modify null.mob. proc name: Switch (/mob/PLAYER/verb/Switch) usr: Shy_guy197 (/mob) src: Shy_guy197 (/mob) call stack: Shy_guy197 (/mob): Switch(Blade2190 (/mob)) This is when person I switched with presses again trying to switch back with me... my name switchs back to my normal name.... runtime error: Cannot modify null.mob. proc name: Switch (/mob/PLAYER/verb/Switch) usr: Blade2190 (/mob) src: Blade2190 (/mob) call stack: Blade2190 (/mob): Switch(Shy_guy197 (/mob)) I believe what it's doing is making me null or making the person using it null |
also to add when the person switchs the person taking the playing person space gets the Switch Verb..... so the person not playing doesn't get the verb any more....
|
M.mob = null