Thread: NPC Animation
View Single Post
Old 28.02.2006, 15:19   #7
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Quote:
Originally Posted by Pentalgin
Quote:
Originally Posted by kvoxi
<DesireValue> - from 0 to 2^32.
[RUS] А про это значание можно поподробней, на что оно влияет? :roll: [/RUS]
Every NPC have various number of desires (stack of desires).
For example:
- MoveAroundDesire
- AttackDesire
- DoNothingDesire
Every desire have parameter <DesireValue>. Current desire (current NPC state) is desire with maximum DesireValue.
For example:
- AttackDesire (DesireValue=1000)
- MoveAroundDesire (DesireValue=100)
- DoNothingDesire (DesireValue=1)
If u add FleeDesire with DesireValue=500, then stack of desires:
- AttackDesire (DesireValue=1000)
- FleeDesire (DesireValue=500)
- MoveAroundDesire (DesireValue=100)
- DoNothingDesire (DesireValue=1)
and NPC stay in AttackState
BUT, If u add FleeDesire with DesireValue=5000, then stack of desires:
- FleeDesire (DesireValue=5000)
- AttackDesire (DesireValue=1000)
- MoveAroundDesire (DesireValue=100)
- DoNothingDesire (DesireValue=1)
and NPC come in FleeState
kvoxi is offline