Page 1 of 1

Updating paperdoll

Posted: Mon Jun 11, 2007 5:18 am
by OldnGrey
Hi,
Does anyone know if you can refresh the paperdoll when it's onscreen, or what can trigger it?

Failing that, is there any way to close it from a script so I can re-open it?

My apologies if this is either too simple or massively complicated.

Posted: Mon Jun 11, 2007 12:05 pm
by Pierce
I'am not 100% sure, but i think only the client can do that, if the player reopens that gump.

Posted: Mon Jun 11, 2007 12:20 pm
by MontuZ
Change the color of the player, at least the simplest way. Should update even if it's the same color.

Posted: Mon Jun 11, 2007 4:25 pm
by Austin
Try calling OpenPaperdoll(who, who);

Posted: Mon Jun 11, 2007 4:42 pm
by OldnGrey
Nope, still can't seem to get the paperdoll to update completely. I have partial success though.

I can update the character graphic (eg color of the skin) by unequipping and equipping a layer (a small hat is fine). So that sort of takes care of most of the problem.

That leave the titles below. Can't seem to make them change eg with title.prefix etc. The real issue here is that this is appearing at a time when the player wants to change his name and even though their name is changed, the paperdoll doesn't show it.

We don't have the pid, so closing the gump that way won't work.
OpenPaperDoll, changing name, and changing color didn't work.
But thanks for the suggestions. Most helpful ideas.

Posted: Tue Jun 12, 2007 12:39 am
by MontuZ
This is just an untested longshot, but try IncRevision(mobile);

Posted: Tue Jun 12, 2007 4:48 am
by OldnGrey
MontuZ,
Nope. It doesn't trigger anything on the paperdoll. :(
So far equipping and unequipping layers is the only trigger I've found (apart from changing the graphic), but still nothing updates the name and title areas. grrr.