PDA

View Full Version : How to create big loop in AI?


kvoxi
03.12.2005, 11:14
How to create big loop in AI?
For example:
//i0=0
push_event
push_const 192 //i0
add
push_const 0
assign
L1
//i0++
push_event
push_const 192 //i0
add
push_event
push_const 192 //i0
add
fetch_i
push_const 1
add
assign

//if (i0>1000) {break;}
push_event
push_const 192 //i0
add
fetch_i
push_const 1000
greater
branch_false L1

This code cause unexpected end of handler code execution and l2npc.exe error "max loop count exceeded"

kvoxi
24.01.2006, 14:22
No one known that operations maximum count in ai script must be less than 30000? May be anyone want to know how hex this limitation?