ID:167236
 
ok i have this code
         Reform()
set category="Animagus"
flick("transfigure",usr)
sleep(10)
usr.icon_state="normal"
density=1

now the problem is i want it to revert to last icon used instead of a icon state because many people will have many different icons and i dont want them all turning into a single icon that they werent using.. please help me.
VolksBlade wrote:
ok i have this code
>          Reform()
> set category="Animagus"
> flick("transfigure",usr)
> sleep(10)
> usr.icon_state="normal"
> density=1
>

now the problem is i want it to revert to last icon used instead of a icon state because many people will have many different icons and i dont want them all turning into a single icon that they werent using.. please help me.

flick() will display the icon state or icon specified for the duration of the animation and then automatically revert back to the previous icon state or icon. So just use the flick() procedure by itself. The flick() procedure is only for looks and does not actually change any of the mob's vars.
In response to Aaiko
Aaiko wrote:
VolksBlade wrote:
ok i have this code
> >          Reform()
> > set category="Animagus"
> > flick("transfigure",usr)
> > sleep(10)
> > usr.icon_state="normal"
> > density=1
> >

now the problem is i want it to revert to last icon used instead of a icon state because many people will have many different icons and i dont want them all turning into a single icon that they werent using.. please help me.

flick() will display the icon state or icon specified for the duration of the animation and then automatically revert back to the previous icon state or icon. So just use the flick() procedure by itself. The flick() procedure is only for looks and does not actually change any of the mob's vars.

(me:)Now with flick() where would i add it?
In response to VolksBlade
You actually already have it in your code so the usr.icon_state="normal" is pointless, also you will not need to set your density if it is already set. Flick does not change that.

Basicly your flick will run the movie of your "transfigure" state or the pix map if it is a single image. I'm not sure how fast the image will show if the state is a pixmap. If it shows it too fast then create a movie out of it with a delay, unless there is a way in the flick proc.