PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
death and other graphic

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Scripting Help
Display posts from previous:   

Author Message
coltain



Joined: 20 Mar 2007
Posts: 97
Location: Poland

PostPosted: Sat Nov 24, 2007 12:37 pm    Post subject: death and other graphic Reply with quote

Situation:
Player has other than humanoid graphic (i.e. polymorf) and he dies.

A polymorf scipt is finished (backing up settings) but the mobile.graphic is a problem

I tried to set it like the distro script:
mobile.graphic := mobile.trueobjtype;

but in that case player`s screen is in color, not b&w

How to set it right???

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 523

PostPosted: Sat Nov 24, 2007 9:39 pm    Post subject: Reply with quote

I think there are better ways to do it now, but in the chrdeath I rez them quickly, fix up all the timers and graphics and effects, and then kill 'em again Smile It all happens so fast the player is not aware of all the mess going on.

That way all the mods are nicely removed and the graphic is correct for when they rez a second time.

Crude? You bet.
Does it work? Yes indeed!

Author Message
coltain



Joined: 20 Mar 2007
Posts: 97
Location: Poland

PostPosted: Sun Nov 25, 2007 12:18 pm    Post subject: Reply with quote

I thought about that way...

Any other idea??

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 355
Location: San Diego, California

PostPosted: Sun Nov 25, 2007 1:55 pm    Post subject: Reply with quote

Code:

if ( mobile.dead )
    // check mobile.gender to set the correct ghost graphic
    // 402 403, etc.
else
    // restore original graphic
endif
[/code]

Post new topic   Reply to topic    PenUltima Online Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty