GithubHelp home page GithubHelp logo

Comments (8)

sunwayforever avatar sunwayforever commented on August 16, 2024

from pkuxkx.

tmcyfy avatar tmcyfy commented on August 16, 2024

是的,是用 %%1 谢谢
另,真不玩了么,这是我见过最好的tt插件,写的很棒。

from pkuxkx.

tmcyfy avatar tmcyfy commented on August 16, 2024

另外想问一下
#action {冲虚道长说道:「今天全派弟子要在%%1熟读典籍,据说要诵唱%%2的第%%3章} { #nop ];

这里的#nop ]是起到什么作用?
看了下官方文档,说是什么都不做,没理解。

from pkuxkx.

sunwayforever avatar sunwayforever commented on August 16, 2024

from pkuxkx.

tmcyfy avatar tmcyfy commented on August 16, 2024

谢谢谢谢
另外请教一下
武当新手诵经那里改了,现在经书要拼接字符串最后一起提交,但是tt的脚本好像只能触发一次

庄子·内篇·逍遥游(3)

#DEBUG ACTION {==%s{ +}%s==}
[02] showme {}
== ==
== 且夫水之积也不厚则其 ==
== 负大舟也无力覆杯水于 ==
== 坳堂之上则芥为之舟置 ==
== 杯焉则胶水浅而舟大也 ==
== 风之积也不厚则其负大 ==
== 翼也无力故九万里则风 ==
== 斯在下矣而后乃今培风 ==
== 背负青天而莫之夭阏者 ==
== 而后乃今将图南
#DEBUG ACTION {==%s{ +}%s==}
[02] showme {}
== ==

庄子·内篇「上卷」 第三页/总九十五页
上一页(pageup)/下一页(pagedown) 诵经(chanting)

求正则怎么破

from pkuxkx.

tmcyfy avatar tmcyfy commented on August 16, 2024

这个匹配正则快把人逼疯了。。。

from pkuxkx.

sunwayforever avatar sunwayforever commented on August 16, 2024

from pkuxkx.

tmcyfy avatar tmcyfy commented on August 16, 2024

原来脚本是屏幕显示一行读一行,现在诵经任务改了,改成一次性显示所有经书,大概就是上面的样子。
现在大概改的脚本是这样的:
#action {=={ +}%8%s==} {#list sj_con add %8;#var sj_content $sj_con[1];#foreach {$sj_con[%*]} {name} {#if {"$sj_content" != "$name"} {#var sj_content {$sj_content$name};}}};
这里我用了 一个foreach去循环读动作触发中获取到的文字,最后拼成完整的一句,如果手动提交就是
chanting 页数 $sj_content;
奇怪的是这个动作如果写在脚本里无效,脚本第一次提交 page <页数>显示内容的时候,这个触发动作只被触发了两次,如上面的记录。

但是如果这段#action {=={ +}%8%s==} {....... 在手动在终端提交一次,脚本可以正常识别,并最后拼成完整的内容。

from pkuxkx.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.