Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06.12.2005, 15:37   #7
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by dar55
one Ai?
for level 31, 42, 53, 64 and no limit?) I don't think so
Do always optimize code:


ai.obj
Code:
class oracle_of_dawn : citizen
parameter_define_begin
	int LevelRange 1
parameter_define_end

handler 32   // MENU_SELECTED 
   variable_begin 
      "talker" 
      "ask" 
      "reply" 
      "fhtml0" 
      "i0" 
      "myself" 
      "_choiceN" 
      "_code" 
      "_from_choice" 
   variable_end 

	push_event   //  ask 
	push_const 100 
	add 
	fetch_i 
	push_const 200 
	negate 
	equal 
	branch_false L910001
L910002 
	shift_sp 1
	push_event	//  talker
	push_const 32
	add 
	fetch_i   //  level 
	push_const 888 
	add 
	fetch_i 
	push_parameter LevelRange 
	less_equal 
	branch_false L910003

	shift_sp 1 
  	push_event   //  talker 
	push_const 32 
	add 
	fetch_i
S910002.   "goodfestival.htm" 
	push_string S910002 
	func_call 43   //  func[ShowPage] 
	shift_sp -2 
	shift_sp -1

	jump L910001
L910003
	shift_sp 1 
	push_event   //  talker 
	push_const 32 
	add 
	fetch_i
S910001.   "nolevel.htm" 
	push_string S910001 
	func_call 43   //  func[ShowPage] 
	shift_sp -2 
	shift_sp -1
L910001
call_super
handler_end
class_end

class oracle_of_dawn_lev31 : oracle_of_dawn
parameter_define_begin
	int LevelRange 31
parameter_define_end
class_end

class oracle_of_dawn_lev42 : oracle_of_dawn
parameter_define_begin
	int LevelRange 42
parameter_define_end
class_end

class oracle_of_dawn_lev53 : oracle_of_dawn
parameter_define_begin
	int LevelRange 53
parameter_define_end
class_end

class oracle_of_dawn_lev64 : oracle_of_dawn
parameter_define_begin
	int LevelRange 64
parameter_define_end
class_end
and etc.
HF is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 17:54.