Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 27.02.2006, 21:49   #1
zcold
Архивный участник
 
Join Date: Nov 2005
Posts: 146
Default 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?
zcold is offline  
Old 27.02.2006, 22:17   #2
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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
Xellos is offline  
Old 27.02.2006, 22:21   #3
zcold
Архивный участник
 
Join Date: Nov 2005
Posts: 146
Default

thanks
zcold is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:46.