Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   How to create big loop in AI? (https://postpacific.loc-online.com/showthread.php?t=2711)

kvoxi 03.12.2005 11:14

How to create big loop in AI?
 
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?


All times are GMT. The time now is 15:59.