ID:157723
 
is there a way for tthe users char to have 2 icons two of all stats , because in my game you have a power to transform into your megaman navi and to your normal char.
At that point you're pretty much better off just having two mobs and switching between them (by changing client.mob) as needed.
In response to Garthor
how would i keep saves of both of them then?
In response to XnathanielX
Hmm... let's see.
To save one character, you save that one mob.
To save two characters... it seems you would save both of those mobs!
In response to Kaioken
i still dont quite get how to do this, changing char and stuff like that. Is tere anyway to just have 1 character, but just having 2 icons with different overlays.
In response to XnathanielX
XnathanielX wrote:
Is tere anyway to just have 1 character, but just having 2 icons with different overlays.

There is. Something like...
atom
var
swap_icon
list
swap_overlays
swap_underlays

proc
SetSwap(tmp_icon, list/tmp_overlays, list/tmp_underlays)
src.swap_icon = tmp_icon
src.swap_overlays = tmp_overlays
src.swap_underlays = tmp_underlays

SwapAppearance()
var
tmp_icon = icon
list
tmp_overlays = overlays
tmp_underlays = underlays

icon = swap_icon
overlays = swap_overlays
underlays = swap_underlays

swap_icon = tmp_icon
swap_overlays = tmp_overlays
swap_underlays = tmp_underlays

And then for whatever /mob, /obj, whatever, you would just have to call object.SetSwap(icon, overlays, underlays) to set the alternate appearance, and then use object.SwapAppearance() to switch.