From ce4250577ec26435cc3b7940bd15e4f2239f2508 Mon Sep 17 00:00:00 2001 From: LocusAzzurro <33701070+LocusAzzurro@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:42:48 +0100 Subject: [PATCH] hourly mochi script --- jiachen/data/amekawamiya/inkraft_story/mochi_service.ink.json | 1 + jiachen/data/amekawamiya/inkraft_story/utilities.ink.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 jiachen/data/amekawamiya/inkraft_story/mochi_service.ink.json create mode 100644 jiachen/data/amekawamiya/inkraft_story/utilities.ink.json diff --git a/jiachen/data/amekawamiya/inkraft_story/mochi_service.ink.json b/jiachen/data/amekawamiya/inkraft_story/mochi_service.ink.json new file mode 100644 index 00000000..fa22a3b5 --- /dev/null +++ b/jiachen/data/amekawamiya/inkraft_story/mochi_service.ink.json @@ -0,0 +1 @@ +{"inkVersion":21,"root":[["\n","ev","str","^overworld","/str",{"x()":"getWorldGameTime","exArgs":1},"/ev",{"temp=":"current_time"},"\n","ev","str","^last_mochi_collection_time","/str",{"x()":"hasVariable","exArgs":1},"/ev",{"temp=":"has_last_mochi_collection_time"},"\n","ev",{"VAR?":"has_last_mochi_collection_time"},false,"==","/ev",[{"->":".^.b","c":true},{"b":["\n","ev","str","^last_mochi_collection_time","/str",{"VAR?":"current_time"},{"x()":"setVariable","exArgs":2},"pop","/ev","\n",{"->":"0.23"},null]}],"nop","\n","ev","str","^mochi_points","/str",{"x()":"hasVariable","exArgs":1},"/ev",{"temp=":"has_mochi_points"},"\n","ev",{"VAR?":"has_mochi_points"},false,"==","/ev",[{"->":".^.b","c":true},{"b":["\n","ev","str","^mochi_points","/str",0,{"x()":"setVariable","exArgs":2},"pop","/ev","\n",{"->":"0.39"},null]}],"nop","\n","ev","str","^last_mochi_collection_time","/str",{"x()":"getVariable","exArgs":1},"/ev",{"temp=":"last_mochi_collection_time"},"\n","ev","str","^mochi_points","/str",{"x()":"getVariable","exArgs":1},"/ev",{"temp=":"mochi_points"},"\n","ev",{"VAR?":"current_time"},{"VAR?":"last_mochi_collection_time"},"-","/ev",{"temp=":"mochi_points_increment"},"ev",{"VAR?":"mochi_points"},{"VAR?":"mochi_points_increment"},"+","/ev",{"temp=":"mochi_points_sum"},"ev",{"VAR?":"mochi_points_sum"},{"VAR?":"TICKS_PER_ITEM"},{"VAR?":"MAX_ITEM_STOCK"},"*",">","/ev",[{"->":".^.b","c":true},{"b":["\n","ev",{"VAR?":"TICKS_PER_ITEM"},{"VAR?":"MAX_ITEM_STOCK"},"*","/ev",{"VAR=":"mochi_points_sum","re":true},{"->":"0.77"},null]}],"nop","\n","ev",{"VAR?":"mochi_points_sum"},{"VAR?":"TICKS_PER_ITEM"},"/","/ev",{"temp=":"mochi_count"},"ev",{"VAR?":"mochi_points_sum"},{"VAR?":"mochi_count"},{"VAR?":"TICKS_PER_ITEM"},"*","-","/ev",{"temp=":"mochi_points_left"},"^DEBUG: Last Collection Time - ","ev",{"VAR?":"last_mochi_collection_time"},"out","/ev","\n","^DEBUG: Current Time - ","ev",{"VAR?":"current_time"},"out","/ev","\n","^DEBUG: Points - ","ev",{"VAR?":"mochi_points"},"out","/ev","^ + ","ev",{"VAR?":"mochi_points_increment"},"out","/ev","^ = ","ev",{"VAR?":"mochi_points_sum"},"out","/ev","\n","ev","str","^last_mochi_collection_time","/str",{"VAR?":"current_time"},{"x()":"setVariable","exArgs":2},"pop","/ev","\n","ev","str","^mochi_points","/str",{"VAR?":"mochi_points_left"},{"x()":"setVariable","exArgs":2},"pop","/ev","\n","ev","str","^ashihara:mochi","/str",{"VAR?":"mochi_count"},"str","^components","/str","str","^$<$qminecraft:lore$q: [$d$<$qcolor$q:$qblue$q,$qitalic$q:false,$qtext$q:$q姬川岛$q$>$d]$>","/str",{"x()":"giveItem","exArgs":4},"pop","/ev","\n","^DEBUG: Mochi Collected - ","ev",{"VAR?":"mochi_count"},"out","/ev","\n","^DEBUG: Points Left - ","ev",{"VAR?":"mochi_points_left"},"out","/ev","\n","^欢迎回到姬川岛,距您上次到访已过去","ev",{"VAR?":"mochi_points_increment"},1200,"/","out","/ev","^分钟。","\n","ev",{"VAR?":"mochi_count"},0,">","/ev",[{"->":".^.b","c":true},{"b":["\n","^这是为您准备的","ev",{"VAR?":"mochi_count"},"out","/ev","^个“麻糬”。","\n","^在","ev",{"VAR?":"TICKS_PER_ITEM"},{"VAR?":"mochi_points_left"},"-",1200,"/","out","/ev","^分钟后可再次领取。","\n",{"->":"0.182"},null]}],[{"->":".^.b"},{"b":["\n","^目前还不能领取“麻糬”,在","ev",{"VAR?":"TICKS_PER_ITEM"},{"VAR?":"mochi_points_left"},"-",1200,"/","out","/ev","^分钟后可领取。","\n",{"->":"0.182"},null]}],"nop","\n","end",["done",{"#f":5,"#n":"g-0"}],null],"done",{"isDebug":["ev",true,"/ev","~ret",{"#f":1}],"isInFlow":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"isInDefaultFlow":["ev",true,"/ev","~ret",{"#f":1}],"flowTo":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"flowToDefault":["ev",true,"/ev","~ret",{"#f":1}],"newFlow":[{"temp=":"flow"},{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"removeFlow":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"isEnded":["ev",false,"/ev","~ret",{"#f":1}],"pause":["ev",true,"/ev","~ret",{"#f":1}],"setLineTicks":[{"temp=":"ticks"},"ev",true,"/ev","~ret",{"#f":1}],"unsetLineTicks":["ev",true,"/ev","~ret",{"#f":1}],"hasVariable":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"getVariable":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"setVariable":[{"temp=":"value"},{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"unsetVariable":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"clearVariables":["ev",true,"/ev","~ret",{"#f":1}],"logDebug":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"logInfo":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"logWarn":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"logError":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"getPlayerName":["ev","str","^PlayerName","/str","/ev","~ret",{"#f":1}],"runCommand":[{"temp=":"command"},"ev",1,"/ev","~ret",{"#f":1}],"runUnlimitedCommand":[{"temp=":"command"},"ev",1,"/ev","~ret",{"#f":1}],"runServerCommand":[{"temp=":"command"},"ev",1,"/ev","~ret",{"#f":1}],"global decl":["ev",72000,{"VAR=":"TICKS_PER_ITEM"},6,{"VAR=":"MAX_ITEM_STOCK"},"/ev","end",null],"#f":1}],"listDefs":{}} \ No newline at end of file diff --git a/jiachen/data/amekawamiya/inkraft_story/utilities.ink.json b/jiachen/data/amekawamiya/inkraft_story/utilities.ink.json new file mode 100644 index 00000000..a564b3e7 --- /dev/null +++ b/jiachen/data/amekawamiya/inkraft_story/utilities.ink.json @@ -0,0 +1 @@ +{"inkVersion":21,"root":[["\n",["done",{"#f":5,"#n":"g-0"}],null],"done",{"exchangeItem":[{"temp=":"giveNbtValue"},{"temp=":"giveNbtPath"},{"temp=":"giveCount"},{"temp=":"giveItemId"},{"temp=":"takeNbtValue"},{"temp=":"takeNbtPath"},{"temp=":"takeCount"},{"temp=":"takeItemId"},"ev",{"VAR?":"takeItemId"},{"VAR?":"takeCount"},{"VAR?":"takeNbtPath"},{"VAR?":"takeNbtValue"},{"x()":"hasItem","exArgs":4},"/ev",{"temp=":"has"},"\n","ev",{"VAR?":"has"},"/ev",[{"->":".^.b","c":true},{"b":["\n","ev",{"VAR?":"takeItemId"},{"VAR?":"takeCount"},{"VAR?":"takeNbtPath"},{"VAR?":"takeNbtValue"},{"x()":"takeItem","exArgs":4},"/ev",{"temp=":"took"},"\n","ev",{"VAR?":"took"},"/ev",[{"->":".^.b","c":true},{"b":["\n","ev",{"VAR?":"giveItemId"},{"VAR?":"giveCount"},{"VAR?":"giveNbtPath"},{"VAR?":"giveNbtValue"},{"x()":"giveItem","exArgs":4},"/ev","~ret","\n",{"->":".^.^.^.14"},null]}],"nop","\n",{"->":".^.^.^.21"},null]}],"nop","\n","ev",false,"/ev","~ret",{"#f":1}],"max":[{"temp=":"b"},{"temp=":"a"},"ev",{"VAR?":"a"},{"VAR?":"b"},">=","/ev",[{"->":".^.b","c":true},{"b":["\n","ev",{"VAR?":"a"},"/ev","~ret",{"->":"max.9"},null]}],[{"->":".^.b"},{"b":["\n","ev",{"VAR?":"b"},"/ev","~ret",{"->":"max.9"},null]}],"nop","\n",{"#f":1}],"min":[{"temp=":"b"},{"temp=":"a"},"ev",{"VAR?":"a"},{"VAR?":"b"},"<=","/ev",[{"->":".^.b","c":true},{"b":["\n","ev",{"VAR?":"a"},"/ev","~ret",{"->":"min.9"},null]}],[{"->":".^.b"},{"b":["\n","ev",{"VAR?":"b"},"/ev","~ret",{"->":"min.9"},null]}],"nop","\n",{"#f":1}],"isDebug":["ev",true,"/ev","~ret",{"#f":1}],"isInFlow":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"isInDefaultFlow":["ev",true,"/ev","~ret",{"#f":1}],"flowTo":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"flowToDefault":["ev",true,"/ev","~ret",{"#f":1}],"newFlow":[{"temp=":"flow"},{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"removeFlow":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"isEnded":["ev",false,"/ev","~ret",{"#f":1}],"pause":["ev",true,"/ev","~ret",{"#f":1}],"setLineTicks":[{"temp=":"ticks"},"ev",true,"/ev","~ret",{"#f":1}],"unsetLineTicks":["ev",true,"/ev","~ret",{"#f":1}],"hasVariable":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"getVariable":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"setVariable":[{"temp=":"value"},{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"unsetVariable":[{"temp=":"name"},"ev",true,"/ev","~ret",{"#f":1}],"clearVariables":["ev",true,"/ev","~ret",{"#f":1}],"logDebug":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"logInfo":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"logWarn":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"logError":[{"temp=":"message"},"ev",true,"/ev","~ret",{"#f":1}],"getPlayerName":["ev","str","^PlayerName","/str","/ev","~ret",{"#f":1}],"runCommand":[{"temp=":"command"},"ev",1,"/ev","~ret",{"#f":1}],"runUnlimitedCommand":[{"temp=":"command"},"ev",1,"/ev","~ret",{"#f":1}],"runServerCommand":[{"temp=":"command"},"ev",1,"/ev","~ret",{"#f":1}],"#f":1}],"listDefs":{}} \ No newline at end of file