![]() |
|
|
#30 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
class citizen
{ EventHandler TALKED(talker) { ShowPage(talker,"sm_hi.htm"); } } class sample : citizen { handler: EventHandler TALK_SELECTED(talker) { if ( _from_choice == 0 ) { //Do something } if ( _from_choice == 1 ) { //Do something 2 } } EventHandler MENU_SELECTED(talker, ask ,reply) { if(ask == 2) { if ( reply == 33 ) { AddChoice(2,"choice 0 2"); AddChoice(3,"choice 0 2"); ShowChoicePage(talker,0); } if ( reply == 34 ) { AddChoice(6,"choice 1 6"); AddChoice(7,"choice 1 7"); ShowChoicePage(talker,1); } } } When I select reply 34, I see list of choices and then press on one choice I enter in TALK_SELECTED handler and normally exec "if ( _from_choice == 1 ){..}" block. But if I select reply 33 I also see appropriate choices, but not enter to TALK_SELECTED handler then i select one of choice, I just see sm_hi.htm page again. Can anybody help me? How use ShowChoicePage func? |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|