本帖最后由 bbye 于 2018-1-31 03:29 PM 编辑
这个不解释啦 :D
- #TRIGGER {^%d(%x)} {dfline=@dfline|%1};
- #TRIGGER {^%d (%x)} {dfline=@dfline|%1};
- #TRIGGER {^??孟之经~(meng zhijing~)告诉你:(%x)。对照~(duizhao~)这页,你就知道你要刺杀的人在哪了。} {dfline=;dflist=%1;dflist=%replace(@dflist,第,);dflist=%replace(@dflist,个字在,);dflist=%replace(@dflist,行,);dflist=%replace(@dflist,列,);dflist=%replace(@dflist,。,|);dflist=%replace(@dflist,,,/);dflist=%replace(@dflist,十一,11);dflist=%replace(@dflist,十二,12);dflist=%replace(@dflist,十三,13);dflist=%replace(@dflist,十四,14);dflist=%replace(@dflist,十五,15);dflist=%replace(@dflist,十,10);dflist=%replace(@dflist,一,1);dflist=%replace(@dflist,二,2);dflist=%replace(@dflist,三,3);dflist=%replace(@dflist,四,4);dflist=%replace(@dflist,五,5);dflist=%replace(@dflist,六,6);dflist=%replace(@dflist,七,7);dflist=%replace(@dflist,八,8);dflist=%replace(@dflist,九,9);dflist=%replace(@dflist,十,10);dflist=%replace(@dflist,1:,);dflist=%replace(@dflist,2:,);dflist=%replace(@dflist,3:,);dflist=%replace(@dflist,4:,);dflist=%replace(@dflist,5:,);dflist=%replace(@dflist,6:,);dflist=%replace(@dflist,7:,);dflist=%replace(@dflist,8:,);dflist=%replace(@dflist,9:,);dflist=%replace(@dflist,10:,);dflist=%replace(@dflist,11:,);dflist=%replace(@dflist,12:,);dflist=%replace(@dflist,13:,);dflist=%replace(@dflist,14:,);dflist=%replace(@dflist,15:,);#say 结果是:@dflist;duizhao;set nextaction getdfw};
- #ALIAS getdfw {dfw=;#loop @numitems(@dflist) {dfw=%concat(@dfw,%right(%left(%word(@dfline,%eval(%word(%word(@dflist,%i,|),1,/)+1),|),%eval(%word(%word(@dflist,%i,|),2,/)*2)),%eval(%word(%word(@dflist,%i,|),2,/)*2-2)))};#say 刺杀的城市是【@dfw】。}
- #VARIABLE numitems {%numwords(%1,"|")}
复制代码 |