In which order are the animation conditions evaluated?

Post » Thu Jun 21, 2012 1:23 pm

I am trying to make some of the killmoves dependant on particular combat skill, trying to simulate this formula:
getRandomPercent <= actor.getActorValue(oneHanded)
(dont mind the incorrect syntax)

So i altered the killmoves conditions in the "Animations" window like this:
S | GetActorValue    | OneHanded | >  | 99 | ORS | GetActorValue    | OneHanded | >= | 10 | ANDS | GetRandomPercent | NONE	 | <= | 10 | ORS | GetActorValue    | OneHanded | >= | 20 | ANDS | GetRandomPercent | NONE	 | <= | 20 | ORS | GetActorValue    | OneHanded | >= | 30 | ANDS | GetRandomPercent | NONE	 | <= | 30 | OR...S | GetActorValue    | OneHanded | >= | 90 | ANDS | GetRandomPercent | NONE	 | <= | 90 | OR

I thought the above set of conditions would be equal to:

S.getAV(oneHanded) > 99
OR (S.getAV(oneHanded) >= 10 AND GetRandomPercent <= 10)
OR (S.getAV(oneHanded) >= 20 AND GetRandomPercent <= 20)
OR (S.getAV(oneHanded) >= 30 AND GetRandomPercent <= 30)
...

but it doesnt seems to be working as expected in the game.
Did i misunderstood how those conditions are evaluated?
How do these OR/AND work in here?
User avatar
Dina Boudreau
 
Posts: 3410
Joined: Thu Jan 04, 2007 10:59 pm

Post » Thu Jun 21, 2012 10:13 am

(S.getAV(oneHanded) > 99 OR S.getAV(oneHanded) >= 10)
AND (GetRandomPercent <= 10 OR S.getAV(oneHanded) >= 20)
AND (GetRandomPercent <= 20 OR S.getAV(oneHanded) >= 30)
AND (GetRandomPercent <= 30 OR S.getAV(oneHanded) >= 40)
...
User avatar
louise fortin
 
Posts: 3327
Joined: Wed Apr 04, 2007 4:51 am

Post » Thu Jun 21, 2012 3:54 pm

Thank you very much, now it seems to work.
User avatar
Michael Korkia
 
Posts: 3498
Joined: Mon Jul 23, 2007 7:58 pm


Return to V - Skyrim