本帖最后由 bbye 于 2018-6-20 07:28 AM 编辑
2018.6.20更新
新的skills触发:
- #TRIGGER {^{│ |│□}(%x)%s{│|㊣│}(%x)%s│%x│%s(%d)~.%d│(%d)%s│} {skills=@skills|%remove(□,%trim(%1))|%2|%3} {hp};
复制代码
=============================分割线==================================
- #TRIGGER {^??#(%d),(%d),(%d),(%d),(%d),(%d)} {sp=1;#wa 500;#if (@llnow=1) {time;jingshennow=%6;mj=%eval(%5/10*9);#if (@llaction=lian) {#if (@lljb=force) {xiulian @llgj} {lllian}};#if (@llaction=lingwu) {lllingwu}} {llnow=1;llskills}} {llskills};
- #TRIGGER {^??#(%x)M,(%d),(%d),(%d),(%d),(%d)} {neilinow=%4;maxneilinow=%3} {llskills};
- #VARIABLE trans {%eval(%replace(%replace(%concat("(0+"%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%1,"零","*0+"),"十","*10+"),"百","*100+"),"千","*1000+"),"万","+0)*10000+(0+"),"亿","+0)*100000000+(0+"),"六","6"),"一","1"),"二","2"),"三","3"),"四","4"),"五","5"),"七","7"),"八","8"),"九","9")"+0)"),"++","+"),"+*","+"))};
- #ALIAS lllian {#if (@llaction=lian) {#if (@sp<2) {#if (@neilinow<%eval(@maxneilinow/3)) {dazuo max} {lianall;yq;yj;hpbrief}} {#if (@neilinow>100) {lianall;yq;hpbrief} {lianall;#wa 1000;gosleep;sleep}}}};
- #ALIAS lllingwu {#if (@llaction=lingwu) {#if (@sp=2) {#if (@neilinow>100) {dushuall;yj;hpbrief} {dushuall;dushuall;#wa 1000;gosleep;sleep}} {#if @jingshennow>@mj) {#if (@neilinow>%eval(@maxneilinow/5)) {dushuall;yj;hpbrief} {dushu;hpbrief}} {dazuo max}}}};
- #ALIAS selectskills {maxskillslevel2=@msk;skjb=%word(@skills,%eval(@ismember(%word(%word(@llskills,@ski,|),1,/),@skills)+1),|);skgj=%word(@skills,%eval(@ismember(%left(%word(%word(@llskills,@ski,|),2,/),16),@skills)+1),|);#say @skjb -> @skgj ->@maxskillslevel->%word(@llskills,@ski,|);#if (@skjb=9999|@skgj=9999) {qudz} {#if (@skjb<@maxskillslevel|@skgj<@maxskillslevel) {#if (@skgj<@skjb) {llaction=lian;hpbrief} {llaction=lingwu;hpbrief};lljb=%word(%word(@llskills,@ski,|),1,/);llgj=%word(%word(@llskills,@ski,|),2,/)} {#if (@ski<@numitems(@llskills)) {ski=%eval(@ski+1);selectskills} {#say alldone}}}};
- #TRIGGER {^??你目前所学过的技能:(共*项技能,你的技能等级最多能达到$(%x)级)} {skills=9999;maxskillslevel=@trans(%1)} {hp};
- #TRIGGER {^{│ |│□}(%x)%s{│|㊣│}(%x)%s│%x│%s(%d)~.%d│(%d)%s│} {skills=@skills|%remove(□,%trim(%1))|%2|%3} {hp};
- #ALIAS qull {tjob;#t+ llskills;llskills;halt;#alias taction {qull}};
- #ALIAS llskills {#if (@xueliteate=1) {llaction=lingwu} {cha;ski=1;set nextaction selectskills}};{dushuall;yj;hpbrief} {dushu;hpbrief}} {dazuo 500}}}};
- #ALIAS lianall {jifa @lljb @llgj;#if (%pos(jian,@llgj)) {wield sword} {unwield all};#5 lian @lljb 50};
- #ALIAS dushu {jifa @lljb @llgj;lingwu @lljb 50};
- #ALIAS dushuall {jifa @lljb @llgj;#8 lingwu @lljb 50};
- #TRIGGER {^??设定环境变量:nextaction = "(*)"} {#exec %1} {llskills};
- #TRIGGER {^??你的内功还没有达到那个境界!你至少需要十点的气来打坐!} {dazuo 10} {llskills};
- #TRIGGER {^??你刚在三分钟内睡过一觉, 多睡对身体有害无益! } {chihe;#wa 3000;hpbrief} {llskills};
- #TRIGGER {^??你运功完毕,深深吸了口气,站了起来。} {hpbrief} {llskills};
- #TRIGGER {^??你一觉醒来,精神抖擞地活动了几下手脚。} {hpbrief;sp=0;#alarm +2:30 {sp=2;#say 可以睡觉了!};chihe} {llskills};#TRIGGER {^??你现在的气太少了,无法产生内息运行全身经脉。} {yq;hpbrief} {llskills};
- #TRIGGER {^??你从玄幻之境回过神来,顿觉内功修为增进不小。} {hpbrief} {llskills};
- #TRIGGER {^??你现在精不够,无法控制内息的流动!} {yj;hpbrief} {llskills};
- #TRIGGER {你将散入经脉的真气收回丹田,深深吸了口气,站了起来。} {hpbrief} {llskills};
- #TRIGGER {^??你的「(%x)」进步了!} {hp;llskills} {llskills};
- #FUNC ismember {%eval(%ismember(%1,%2)*(%numwords(%word(%concat("|")%replace(%2,"|","||")%concat("|"),1,%concat("|")%1%concat("|")),"||")+1))};
- #FUNC numitems {%numwords(%1,"|")};
- #FUNC llskills {请自行定义此变量,格式为:基本武功/高级武功|dazuo/dazuo,举例:sword/huashan-jianfa|parry/huashan-jianfa|dodge/huashan-shenfa|forece/zixia-shengong|dazuo/dazuo,遇到force会修炼,慎重。};
- #ALIAS gosleep {请修改:从打坐地点到睡觉地点的路径};
- #ALIAS chihe {drink cha;请修改:从睡觉地点到打坐地点的路径}
复制代码
注意:
1,lianall,dushu,dushuall三个alias中的次数可以进行修改,以适合自己的气/精/内力,默认数值比较大。
2,llskills变量的定义很重要,关系到你的练功效率。
3,在selectskills别名中,你可以定义maxskillslevel等级,这个数字是你想要练到的最大数值,默认是795。本来是自动获取的,后来因为修行经验等原因,某些时候我们不想练到最大等级,所以改成了手动定义。每次qull之前,请手动修改。
4,和qudz,及qutn一样,请定义gosleep及chihe中的路径。
5,selectskills的别名中有个qutn,意思是结束了去吐纳,可以改成任何指令,比如qudz,quit等。
6,用法:为llskills变量赋值成你的武功顺序,定义好gosleep,chihe中的路径,修改好selectskills中的maxskillslevel数值,在可以领悟的房间,输入:qull。
7,第13行:#TRIGGER {^??#(%x)M,(%d),(%d),(%d),(%d),(%d)} {neili=%4;maxneili=%3} {llskills};,注意,此处为hpbrief的触发,经验单位是M,如果经验过低,请修改成K。
9月28日编辑:
1.增加了函数@numbrief。
2.增加了说明7 。
|