View Single Post
Old 02.03.2006, 10:38   #1
zcold
Архивный участник
 
Join Date: Nov 2005
Posts: 146
Default Trying to learn AI

Hi everybody!

I have some questions to AI coders And I'll be happy if you answer them

Ok, first is:
In AI.obj code:
push_const 271873
push_const 1
push_const 0
push_const 1000000
func_call 10 // func[AddUseSkillDesire]

Is 271873 - skill_id? How to calculate it from skilldata?

or that part:

push_event // skill_name_id
push_const 120
add
fetch_i
push_const 536577
equal
branch_false L42258

Is 536577 - skill_id? How to know what number this skill have in skilldata?

Can somebody describe this parts of code by steps?
Something like:
push_event // put value of event (handler?) on stack. What is event in that case (push_event)?
push_const 120 // put 120 on stack
add // add event+stack
fetch_i // get result on top of stack
push_const 536577 // put 536577 on stack
equal // compare: equal=true, not equal=false
branch_false L42258 // if false - jump to label L42258

Is my understanding of that part is correct?


Can somebody give any information about using NASC or making NASC-scripts?
I want to learn, want to make scripts, but haven't enough information
zcold is offline