Basically, I want them to have a state where they are sort of being casual. I mostly want them to be looping anim26 but sometimes talking using anim37, anim38 or anim39.
At frameatend=26 have I want them to randomly choose to either:
play anim26 again (70% of the time)
or
play anim37 (40% of the time)
and then either play anim 37 again (50%) or either anim38 or anim39-neither of which should be allowed to loop (10%,10%) or go back to anim26.
anim26 is the guard idle. anims36,37,38 are talking.
Before I had:
:state=2,plrdistwithin=100,plrcanbeseen:state=1
:state=2,plrdistfurther=100,random=2:animate=37,rotateheadrandom=25
:state=2,plrdistfurther=100,random=50:animate=38,rotateheadrandom=25
:state=2,plrdistfurther=100,random=50:animate=39,rotateheadrandom=25
Which didn't include the idle and they flipped through the animations too fast and looked possessed.
Now I am trying something like:
;Slacking Off
:state=4,plrdistwithin=200,plrcanbeseen:state=1
:state=4,plrdistfurther=200:animate=26
:state=4,random=20:rotateheadrandom=25
:state=4,noiseheard=5:rotateheadrandom=85
:state=4,plrdistfurther=200,frameatend=26,random=2:animate=26
:state=4,plrdistfurther=200,frameatend=26,random=2:animate=37
:state=4,plrdistfurther=200,frameatend=26,random=50:animate=38
:state=4,plrdistfurther=200,frameatend=26,random=50:animate=39
:state=4,plrdistfurther=200,frameatend=37,random=20:animate=26
:state=4,plrdistfurther=200,frameatend=37,random=10:animate=37
:state=4,plrdistfurther=200,frameatend=37,random=50:animate=38
:state=4,plrdistfurther=200,frameatend=37,random=50:animate=39
:state=4,plrdistfurther=200,frameatend=38,random=20:animate=26
:state=4,plrdistfurther=200,frameatend=38,random=10:animate=37
:state=4,plrdistfurther=200,frameatend=39,random=20:animate=26
:state=4,plrdistfurther=200,frameatend=39,random=10:animate=37
I'd like to keep this all in one state but don't know if I can do it that way. I haven't worked out the proper random values yet.