View Single Post
Old 20.12.2005, 02:26   #41
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

Quote:
Originally Posted by toolpunk
i think it needs to be absolutely unique in the whole ai.obj...
at least it wont hurt lol
LXXX SXXX may be unique whole each class. I use this in my ai.obj and have no problems.


Question:

class some_class1 : default_npc
handler 32 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
....
handler_end
class_end

class some_class2 : some_class1
handler 32 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
....
call_super
handler_end
class_end

npc_ai={[some_class2]}

in some_class2 I process this URL menu_select?ask=2&reply=10
in some_class1 I process menu_select?ask=2&reply=11

If user press second URL, ask and reply in some_class1 equal to 2 and 11? Or call_super not pass parameters?
RmzVoid is offline