//关键事件选项之后 void ChooseResult(string s1) { chooId = s1;//被选择的框id; Model.TalkResult tr = nr.getTalkResult(chooId); type = tr.ResultType;//结果类型 //跳转到下一个事件 //string NextEvent = tr.EventGroup;//切换的下一个事件组ID; if (tr.EventGroup != "1")//有下一个事件组 { //寻找下一个事件 EventGroup = tr.EventGroup; //切换事件组ID gEvent = nConversation.getKeyEV(EventGroup); key = nt.getTalk(gEvent.eventTalk); //节点 } else//没有下一个事件组。结束。 { key = null; } }
//输入选项result返回type public int getType(string s) { Model.TalkResult tr = new Model.TalkResult(); tr = Nresult.getTalkResult(s); return(tr.ResultType); }