![]() |
|
|
#38 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
class sample : citizen
{ handler: EventHandler CREATED() { myself.i_ai0=0; } EventHandler TALK_SELECTED(talker) { if ( _from_choice!=0 && myself.i_ai0==1 ) { //Do something myself.i_ai0 = 0; } if ( _from_choice!=0 && myself.i_ai0==2 ) { //Do something 2 myself.i_ai0 = 0; } } EventHandler MENU_SELECTED(talker, ask ,reply) { if(ask == 2) { if ( reply == 33 ) { AddChoice(2,"choice 0 2"); AddChoice(3,"choice 0 2"); myself.i_ai0 = 1; ShowChoicePage(talker,1); } if ( reply == 34 ) { AddChoice(6,"choice 1 6"); AddChoice(7,"choice 1 7"); myself.i_ai0 = 2; ShowChoicePage(talker,1); } } } |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|