![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 115
|
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 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
here the decompiled code:
Code:
if (<expression_from_stack> && InMyTerritory(myself.sm)) {
AddAttackDesire(creature, @AMT_MOVE_TO_TARGET, 200);
}
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Oct 2005
Posts: 115
|
ic, but the question was what does this mean 1 and 200
cose i want to replace this part with AddUseSkillDesire |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
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) |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
200 - DesireValue (see https://postpacific.loc-online.com/f...pic.php?t=3666) |
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
ah, there is the post that i was looking for ^^
but that is exactly was i mean (describing is not so my thing...) |
|
|
|
|