![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
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] |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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 |
|
|
|
|
#3 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
Quote:
The need editing? |
|
|
|
|
|
#4 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
<EffectAction> with from 1 to 32 (usually: 1 or 2) <EffectDuration_maybe> - IMHO value in milliseconds <DesireValue> - from 0 to 2^32. |
||
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
Code:
class citizen : default_npc parameter_define_begin string fnHi "chi.htm" parameter_define_end handler 3 // TALKED variable_begin "talker" "myself" "_choiceN" "_code" "_from_choice" variable_end shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const 1 push_const 123 push_const 0 func_call 13 // func[AddEffectActionDesire] shift_sp -4 shift_sp -1 shift_sp 1 push_event // talker push_const 32 add fetch_i push_parameter fnHi func_call 43 // func[ShowPage] shift_sp -2 shift_sp -1 handler_end class_end Если я вставлю вот так то работать будет? Извеняюсь за нюбский вапрос я в этих строках вообще неразбираюсь |
|
|
|
|
#6 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 6
|
Quote:
|
|
|
|
|
|
#7 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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 |
||
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2006
Posts: 6
|
Thx kvoxi...
[RUS] Пытаюсь сделать анимацию нпц ассинхронной, в аи не разбираюсь(, подскажите плиз что не правильно делаю ops: [/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 |
|
|
|
|
#9 | ||
|
Архивный участник
Join Date: May 2005
Posts: 463
|
Quote:
Quote:
that it says this |
||
|
|
|
|
#10 |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Code:
handler 13 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end shift_sp 1 push_const * func_call 52 // func[SetTimerPeriodByTick] shift_sp -1 shift_sp -1 handler_end handler 11 // TIMER_FIRED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const 2 push_const 3000 push_const 10000 func_call 13 // func[AddEffectActionDesire] shift_sp -4 shift_sp -1 handler_end |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
Aspire
Я стал изучать NASC можеш дать исходник этого? |
|
|
|
|
#12 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
П.С. эта идея немножко стара, но чуток ее доработав - все становится как надо) |
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
Ставил заместо зваездочки разные значения 1 10 100 10000
драгаются всеравно синхронно |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Sep 2005
Posts: 455
|
ENGLISH
|
|
|
|
|
#15 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
Or you want to learn me english?
|
|
|
|
|
|
#16 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
Доработать сие дело можно вставкой рандома, но вот куда и как - это уже тебе думать. Родительский класс можно опознать по call super в конце кода класса. И вообще, обрати внимание на построение класса warrior - вот тебе и образец. |
|
|
|
|
|
#17 | ||
|
Архивный участник
Join Date: Mar 2006
Posts: 26
|
Quote:
|
||
|
|
|
|
#18 | |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
Quote:
to that they call different classes to him ? |
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
... create 1 parent class, use random function to randomize timers, if u use same time for many npc - u get error thats all.
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
mm, ok, thanks aspire
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
У мя все это дело прописывается в default_npc ошибок никаких нет тока ани все синхронные, также гварды и мобы нежелают делать свои обязаности в плане "Дурью занимания"
|
|
|
|
|
#22 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
Каждый пост все дурнее и дурнее. offtop |
|
|
|
|
|
#23 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
|
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Jan 2006
Posts: 73
|
Все всем спасибо проблема решена
Aspire Ты злой Я невыкладываю готовый скрипт лиш потому што мотут просматривать админы враждебного для меня сервера. |
|
|
|
|
#25 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
невыкладываю работы не будет пересечения таймеров.
пост все дурнее обязаности в плане простые числа, тогда у тебя за цикл !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! kinky eh? |
|
|
|
|