![]() |
NPC Animation
I find this Ai code
push_const 2 /Effect Type(1 dialog, 2 типа когда неписи сами по себе фигней маются...3 и 4, походу только у антареса, ну мб еще у кого есть.) 2 Free Anim push_const 1000 / Delay time refresh временной интервал между возможными повторами push_const 10000000/ в душе не ипу.... Not ideas func_call 13 // func[AddEffectActionDesire] Help me from write AI code condition COPY\PASTE [RUS] Как заставить это работать? [/RUS] |
shift_sp 1
push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const <EffectAction=[1..32]> push_const <EffectDuration_maybe> push_const <DesireValue> func_call 13 // func[AddEffectActionDesire] shift_sp -4 shift_sp -1 |
Quote:
The need editing? |
Quote:
<EffectAction> with from 1 to 32 (usually: 1 or 2) <EffectDuration_maybe> - IMHO value in milliseconds <DesireValue> - from 0 to 2^32. |
Code:
class citizen : default_npcЕсли я вставлю вот так то работать будет? Извеняюсь за нюбский вапрос я в этих строках вообще неразбираюсь |
Quote:
|
Quote:
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 |
Thx kvoxi...
[RUS] Пытаюсь сделать анимацию нпц ассинхронной, в аи не разбираюсь(, подскажите плиз что не правильно делаю :oops: [/RUS] shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const 2 shift_sp 1 push_const 20000 func_call 55 // func[Rand] shift_sp -1 push_const 1000 func_call 13 // func[AddEffectActionDesire] shift_sp -4 shift_sp -1 |
Quote:
Quote:
that it says this |
Code:
handler 13 // CREATED |
Aspire
Я стал изучать NASC можеш дать исходник этого? |
Quote:
П.С. эта идея немножко стара, но чуток ее доработав - все становится как надо) |
Ставил заместо зваездочки разные значения 1 10 100 10000
драгаются всеравно синхронно |
ENGLISH
|
Quote:
Or you want to learn me english? :D |
Quote:
Доработать сие дело можно вставкой рандома, но вот куда и как - это уже тебе думать. Родительский класс можно опознать по call super в конце кода класса. И вообще, обрати внимание на построение класса warrior - вот тебе и образец. |
Quote:
|
Quote:
to that they call different classes to him ? |
... create 1 parent class, use random function to randomize timers, if u use same time for many npc - u get error thats all.
|
mm, ok, thanks aspire
|
У мя все это дело прописывается в default_npc ошибок никаких нет тока ани все синхронные, также гварды и мобы нежелают делать свои обязаности в плане "Дурью занимания"
|
Quote:
Каждый пост все дурнее и дурнее. offtop |
Quote:
|
Все всем спасибо проблема решена
Aspire Ты злой Я невыкладываю готовый скрипт лиш потому што мотут просматривать админы враждебного для меня сервера. |
невыкладываю работы не будет пересечения таймеров.
пост все дурнее обязаности в плане простые числа, тогда у тебя за цикл !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! kinky eh? |
Quote:
sorry but i cant understand what do you mean :? |
neither am I, and neither the most ppl of post pacific community :D try to use the international language :)
|
Quote:
I can be silent on any language of the world. |
oye ya po si a varios le interesa esto de las animaciones de los npc, hablen en ingles po, estode los rusos me tiene medio mariado ya, :P almenos si hablan en ingles puedo traducirlos para entenderlos :P algun admin que haga algo, o son todos rusos?
use ENGLISH lenguaje please |
Quote:
|
Хехе так ано и случилось+))
|
aaaaa laaaaaaaaa xxa... hablan puro ruso..... me aburieron.. xP
|
| All times are GMT. The time now is 16:23. |