Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:34.