Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   ai.obj question (https://postpacific.loc-online.com/showthread.php?t=3500)

zcold 27.02.2006 21:49

ai.obj question
 
I have some questions on ai.obj...

In ai.obj i have:
Code:

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:
Code:

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 :)


All times are GMT. The time now is 16:09.