This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

View file

@ -0,0 +1,7 @@
{
"frameGrid" : {
"size" : [300, 200],
"dimensions" : [2, 1],
"names" : [ [ "default", "anime" ] ]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -0,0 +1,97 @@
{
"displayConfig" : {
"title" : "Test Adventure",
"subtitle" : "Find the girl(?) of your dreams",
"textColor" : "#605030",
"selFormat" : "^darkgreen;[%s]",
"unselFormat" : "^darkgray; %s ",
"textRate" : 50
},
"titleScene" : {
"background" : "bg_blossoms",
"foreground" : "title"
},
"entryScene" : "intro1",
"scenes" : {
"intro1" : {
"background" : "bg_school",
"text" : "It's the beginning of another boring school year...",
"continue" : "intro2"
},
"intro2" : {
"background" : "bg_school",
"text" : "Same old building, same old class, same old girls. Why couldn't my family have moved somewhere exciting?",
"continue" : "intro3"
},
"intro3" : {
"background" : "bg_school",
"text" : "Same old school, but one year closer to...",
"options" : [
["Freedom!", "intro4optimist", null, ["optimism+1"]],
["Exams", "intro4pessimist"]
]
},
"intro4optimist" : {
"background" : "bg_school",
"text" : "Freedom! And who knows, maybe this year will surprise you! You look over the grounds with renewed optimism.",
"continue" : "intro5"
},
"intro4pessimist" : {
"background" : "bg_school",
"text" : "Exams. Job applications. Unpaid overtime. Late retirement and an early grave.",
"continue" : "intro5"
},
"intro5" : {
"background" : "bg_school",
"text" : "Wait... who's that girl??",
"foreground" : "char_duck",
"foregroundFrame" : "default",
"options" : [
["A Great Duck", "intro6good", ["optimism>0"], ["optimism+2"]],
["A Duck?", "intro6", ["optimism<1"]],
["Heck Nope", "story", null, ["optimism-1"]]
]
},
"intro6" : {
"background" : "bg_school",
"foreground" : "char_duck",
"foregroundFrame" : "default",
"text" : "I guess that must be a duck...",
"continue" : "story"
},
"intro6good" : {
"background" : "bg_school",
"foreground" : "char_duck",
"foregroundFrame" : "anime",
"text" : "That is, hands down, the most amazing duck you've ever seen.",
"continue" : "story"
},
"story" : {
"background" : "bg_school",
"foreground" : "char_duck",
"foregroundFrame" : "default",
"text" : "(and then a whole story happened)",
"continue" : [["optimism>1", "goodEnding"], ["optimism<0", "badEnding"], "neutralEnding"]
},
"goodEnding" : {
"background" : "bg_blossoms",
"text" : "I've found my forever duck.",
"foreground" : "gameover"
},
"neutralEnding" : {
"background" : "bg_blossoms",
"text" : "...and the rest of the school year was boring, as expected.",
"foreground" : "gameover"
},
"badEnding" : {
"background" : "bg_blossoms",
"text" : "Guess I'll never find love...",
"foreground" : "gameover"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -0,0 +1,119 @@
{
"gui" : {
"background" : {
"type" : "background",
"fileHeader" : "/interface/chests/chestheader.png",
"fileBody" : "/interface/scripted/treasuretestchest/treasuretestchestbg.png",
"fileFooter" : "/interface/chests/chestfooter.png"
},
"lblLevel" : {
"type" : "label",
"value" : "Level:",
"hAnchor" : "right",
"position" : [30, 68]
},
"txtLevel" : {
"type" : "textbox",
"callback" : "null",
"position" : [36, 68],
"hint" : "level",
"maxWidth" : 80,
"enterKey" : "generateTreasure",
"value" : "1",
"nextFocus" : "txtSeed",
"prevFocus" : "txtTreasurePool"
},
"lblSeed" : {
"type" : "label",
"value" : "Seed:",
"hAnchor" : "right",
"position" : [86, 68]
},
"txtSeed" : {
"type" : "textbox",
"callback" : "null",
"position" : [92, 68],
"hint" : "seed",
"maxWidth" : 80,
"enterKey" : "generateTreasure",
"value" : "",
"nextFocus" : "txtTreasurePool",
"prevFocus" : "txtLevel"
},
"lblPool" : {
"type" : "label",
"value" : "Pool:",
"hAnchor" : "right",
"position" : [30, 54]
},
"txtTreasurePool" : {
"type" : "textbox",
"callback" : "null",
"position" : [36, 54],
"hint" : "pool",
"maxWidth" : 120,
"enterKey" : "generateTreasure",
"value" : "basicChestTreasure",
"nextFocus" : "txtLevel",
"prevFocus" : "txtSeed"
},
"btnGenerate" : {
"type" : "button",
"base" : "/interface/button.png",
"hover" : "/interface/buttonhover.png",
"press" : "/interface/buttonhover.png",
"caption" : "Generate",
"position" : [52, 31],
"callback" : "generateTreasure"
},
"objectImage" : {
"type" : "image",
"position" : [40, 122],
"file" : "",
"centered" : true,
"maxSize" : [40, 40],
"minSize" : [40, 40]
},
"itemGrid" : {
"type" : "itemgrid",
"position" : [81, 81],
"dimensions" : [4, 4],
"spacing" : [19, 19],
"backingImage" : "/interface/inventory/empty.png"
},
"itemGrid2" : {
"type" : "itemgrid",
"position" : [4, 43],
"slotOffset" : 16,
"dimensions" : [8, 2],
"spacing" : [19, 19],
"backingImage" : "/interface/inventory/empty.png"
},
"count" : {
"type" : "label",
"value" : "16 SLOTS",
"hAnchor" : "mid",
"position" : [120, 158]
},
"overlay" : {
"type" : "image",
"file" : "/interface/chests/shine25to32.png",
"position" : [0, 2]
},
"close" : {
"type" : "button",
"base" : "/interface/x.png",
"hover" : "/interface/xhover.png",
"pressed" : "/interface/xpress.png",
"pressedOffset" : [0, 0],
"position" : [143, 174]
}
},
"scriptWidgetCallbacks" : [
"generateTreasure"
],
"scripts" : ["/interface/scripted/treasuretestchest/treasuretestchestgui.lua"],
"scriptDelta" : 5
}

View file

@ -0,0 +1,17 @@
function init()
end
function generateTreasure()
world.containerTakeAll(pane.containerEntityId())
local treasurePool = widget.getText("txtTreasurePool")
if treasurePool and root.isTreasurePool(treasurePool) then
local level = widget.getText("txtLevel") or 1
local seed = widget.getText("txtSeed")
if seed == "" then seed = nil end
local treasure = root.createTreasure(treasurePool, level, seed)
for _, item in pairs(treasure) do
world.containerAddItems(pane.containerEntityId(), item)
end
end
end