ID:163308
 
My doubs are:
First-How to make a usr transform into M, but after a few seconds transform into usr again.
Second-How to make usr trade location whit M (eg:
Before the Verb: M location=1, usr location=2
After the Verb: M location=2, usr location=1

Cybork
First, depends on what you mean by transform. Look like them, same stats, etc.

Second, you'd simply refer to M and:
mob
verb
teleport(mob/M in world)
src.loc = M.loc // yeah it's that easy


That's a very BASIC verb as it will let you go to the location of any mob in the world. If you'd want to limit it to say only players, you'd use lists.

In response to Mecha Destroyer JD
I know that verb... but all that verb does is put the usr in the same location as M... i want to trade locations....
M goes to usr location and usr goes to M location...
And the first doubt is about icons...
How to make usr look exactly like M (icon, overlays and underlays) and after a few seconds return to the original form...´
Cybork
In response to Cybork
mob/verb/Swap(var/mob/M in world)
SwapUsers(usr,M)//swaps them using the below code
sleep(50)//wait 5 seconds
SwapUsers(usr,M)//swaps them back

mob/proc/SwapUsers(mob/M1,mob/M2)
//make some holder vars
var/TempIcon=M1.icon
var/TempIS=M1.icon_state
var/TempLoc=M1.loc
//make the M1 into M2
M1.loc=M2.loc
M1.icon=M2.icon
M1.icon_state=M2.icon_state
//make M2 into the M1 using the holder vars
M2.loc=TempLoc
M2.icon=TempIcon
M2.icon_state=TempIS

note: if either of the mobs moves while theyre swapped, it will move them to the new position when swapping back (not the one they were originaly swapped from) same with icons

to change overlays/underlays you can just use the same principals as above
In response to Falacy
THANKS :D that worked !