Log in

View Full Version : ai.obj question


zcold
27.02.2006, 21:49
I have some questions on ai.obj...

In ai.obj i have:
class sa_big_class : default_npc
parameter_define_begin
int lvl_sa 0
parameter_define_end
...

So, when sub-class call super-class, parameter lvl_sa always will be set to 0?
If in sub-class this variable is set to 1, it will be changed to 0?

What will be with:
push_parameter lvl_sa
push_const 0
greater
branch_false L41993
if parameter lvl_sa is not defined anywhere when class is called?

Xellos
27.02.2006, 22:17
the parameter defines are default parameters, that are only used when nothing is set

u have same things with fnHTML in jobclass changer npcs for example

each of the used parameters have to be declared, but can be overwritten from subclass, npcmaker (npcpos.txt) or npcdata

zcold
27.02.2006, 22:21
thanks :)