一键收割随从辛勤劳动的成果 😈



  • 2.1.13 版本 id 占位符支持随从背包列表了

    ! 脚本请更新到 2.1.13 或以上版本

    所以,可以写个流程一键把随从工作的成果全都拿到包里

    例如,从采药的鳌拜那里把药材都拿走,然后让他继续采药

    jh fam 0 start;go west;go west;go north;go enter;go northeast
    ($servant) = 鳌拜
    dc {r(servant)} stopstate;select {r(servant)};pack {r(servant)}
    @dialog
    ($cmd) = null
    [if] {芦荟}? != null
        ($cmd) = (cmd);dc {r(servant)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        ($cmd) = (cmd);dc {r(servant)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        ($cmd) = (cmd);dc {r(servant)} give (:id) {d当归#} {d当归}
    [if] (cmd) != null
        (cmd)
    dc {r(servant)} cai
    
    复制上方代码

    我三个随从都在采药,所以我写了:

    流程:一键收割

    stopstate;jh fam 0 start;go west;go west;go north;go enter;go northeast
    @call 拿药材 鳌拜
    @call 拿药材 程灵素
    @call 拿药材 周芷若
    
    复制上方代码

    被调用流程:拿药材

    dc {r(arg0)} stopstate;select {r(arg0)};pack {r(arg0)}
    @dialog
    ($cmd) = null
    [if] {d芦荟}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d当归#} {d当归}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d柴胡}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d石楠叶#} {d石楠叶}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d茯苓}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d熟地黄#} {d熟地黄}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d冬虫夏草}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d九香虫#} {d九香虫}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d凌霄花}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        ($cmd) = (cmd);dc {r(arg0)} give (:id) {d人参#} {d人参}
    [if] (cmd) != null
        (cmd)
    dc {r(arg0)} cai
    
    复制上方代码

    注意:需要建立 2 个流程哦

    当然,可以把“拿药材”那个流程放到文件夹里去,不在根目录显示


  • 宗师

    请问调用流程可以传多少个参数?



  • @老实人 任意多个,用 , 连接

    被调用流程中使用 (arg0)(arg1) 来使用传来的值

    (arg0) 为传过来的第一个参数,以此类推



  • @老实人 有了好流程给大家分享分享哈 😄


  • 宗师

    好的,谢谢

    原来论坛支持Markdown



  • @老实人 是的,支持 Markdown 😁



  • 执行系统命令: stopstate;jh fam 0 start;go west;go west;go north;go enter;go northeast
    等待,直至符合条件: @until {r(__x6_arg0)}? != null
    等待,直至符合条件: @until {r(__x6_arg0)}? != null
    等待,直至符合条件: @until {r(__x6_arg0)}? != null
    执行系统命令: dc hjrz3461e30 stopstate;select hjrz3461e30;pack hjrz3461e30
    等待,直至符合条件: @dialog
    到这儿就停了呀?



  • @小布丁 截个图看一下



  • 此回复已被删除!


  • @小布丁 知道了,应该是你的脚本没更新



  • 对对,就是脚本没更新!
    👍 大佬




登录后回复