Thread: ≈ AI Help
View Single Post
Old 19.07.2007, 03:19   #7
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

ahh you want the compiled code.

"i1 = OwnItemCount(talker, 6360);" is something like this...

~~~~ this is C1 ~~~~

push_event
push_const 196 // i1
add
push_reg_sp
fetch_i
shift_sp 1
push_event
push_const 32 // talker
add
fetch_i
push_const 6360
func_call 81 // OwnItemCount
shift_sp -2
assign
shift_sp -1

~~~~ and this is C4 ~~~~

push_event
push_const 264 // i1
add
push_reg_sp
fetch_i
push_event
push_const 704 // myself
add
fetch_i
push_event
push_const 40 // talker
add
fetch_i
push_const 6360
func_call 184680579 // OwnItemCount
shift_sp -2
assign4
shift_sp -1
Sauron is offline