Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.03.2006, 10:47   #1
divine
Архивный участник
 
Join Date: Oct 2005
Posts: 115
Default need help with ai

shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i
func_call 177 // func[InMyTerritory]
shift_sp -1
and
L1892
branch_false L1894
L1893
shift_sp 1
push_event // creature
push_const 68
add
fetch_i
push_const 1
push_const 200
func_call 2 // func[AddAttackDesire]
shift_sp -3
shift_sp -1
L1894

can someone explain me what does push_const do in this cases
divine is offline  
Old 05.03.2006, 10:57   #2
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

here the decompiled code:
Code:
if (<expression_from_stack> && InMyTerritory(myself.sm)) {
   AddAttackDesire(creature, @AMT_MOVE_TO_TARGET, 200);
}
it's referring to a sub structure of the npc
Xellos is offline  
Old 05.03.2006, 11:08   #3
divine
Архивный участник
 
Join Date: Oct 2005
Posts: 115
Default

ic, but the question was what does this mean 1 and 200

cose i want to replace this part with AddUseSkillDesire
divine is offline  
Old 05.03.2006, 11:28   #4
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

AMT_STAND = 0 // fixed, does not move
AMT_MOVE_TO_TARGET = 1 // no words

AddAttackDesire(target, @AMT, priority?)

i call the 3rd parameter priority, because u can use it to let the npc switch targets/states (but it's the initial set and the npc seems to recalculate it)
Xellos is offline  
Old 05.03.2006, 12:36   #5
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Quote:
Originally Posted by divine
ic, but the question was what does this mean 1 and 200

cose i want to replace this part with AddUseSkillDesire
1 - AMT (see Xellos explanation)
200 - DesireValue (see https://postpacific.loc-online.com/f...pic.php?t=3666)
kvoxi is offline  
Old 05.03.2006, 12:58   #6
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

ah, there is the post that i was looking for ^^
but that is exactly was i mean
(describing is not so my thing...)
Xellos 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 18:09.