v1.4.4
After Width: | Height: | Size: 169 KiB |
After Width: | Height: | Size: 138 KiB |
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"frameGrid" : {
|
||||
"size" : [300, 200],
|
||||
"dimensions" : [2, 1],
|
||||
"names" : [ [ "default", "anime" ] ]
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 217 B |
BIN
assets/devel/interface/scripted/sbvn/games/testgame/gameover.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/devel/interface/scripted/sbvn/games/testgame/textbox.png
Normal file
After Width: | Height: | Size: 740 B |
BIN
assets/devel/interface/scripted/sbvn/games/testgame/title.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 2 KiB |
|
@ -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
|
||||
}
|
|
@ -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
|
103
assets/devel/interface/warping/missionteleporter.config
Normal file
|
@ -0,0 +1,103 @@
|
|||
{
|
||||
"canBookmark" : false,
|
||||
"includePartyMembers" : false,
|
||||
"includePlayerBookmarks" : false,
|
||||
"destinations" : [
|
||||
{
|
||||
"name" : "Outpost",
|
||||
"planetName" : "Survivors' Settlement",
|
||||
"warpAction" : "InstanceWorld:outpost",
|
||||
"icon" : "outpost"
|
||||
},
|
||||
{
|
||||
"name" : "Protectorate",
|
||||
"planetName" : "protectorate",
|
||||
"warpAction" : "InstanceWorld:protectorate",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Erchius Mining Facility",
|
||||
"planetName" : "lunarbase",
|
||||
"warpAction" : "InstanceWorld:lunarbase",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Floran Hunting Grounds",
|
||||
"planetName" : "floranmission1",
|
||||
"warpAction" : "InstanceWorld:floranmission1",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Dreadwing UFO Fight",
|
||||
"planetName" : "penguinmission1",
|
||||
"warpAction" : "InstanceWorld:penguinmission1",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Penguin Mech Testing",
|
||||
"planetName" : "penguinmission2",
|
||||
"warpAction" : "InstanceWorld:penguinmission2",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Hylotl Mission",
|
||||
"planetName" : "hylotlmission1",
|
||||
"warpAction" : "InstanceWorld:hylotlmission1",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Avian Mission",
|
||||
"planetName" : "avianmission1",
|
||||
"warpAction" : "InstanceWorld:avianmission1",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Apex Mission",
|
||||
"planetName" : "apexmission1",
|
||||
"warpAction" : "InstanceWorld:apexmission1",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Glitch Mission",
|
||||
"planetName" : "glitchmission1",
|
||||
"warpAction" : "InstanceWorld:glitchmission1",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Tentacle Mission",
|
||||
"planetName" : "tentaclemission",
|
||||
"warpAction" : "InstanceWorld:tentaclemission",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Challenge Portal",
|
||||
"planetName" : "challengerooms",
|
||||
"warpAction" : "InstanceWorld:challengerooms",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Ancient Vault - Fire",
|
||||
"planetName" : "ancientvault_fire",
|
||||
"warpAction" : "InstanceWorld:ancientvault_fire",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Ancient Vault - Poison",
|
||||
"planetName" : "ancientvault_poison",
|
||||
"warpAction" : "InstanceWorld:ancientvault_poison",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Ancient Vault - Electric",
|
||||
"planetName" : "ancientvault_electric",
|
||||
"warpAction" : "InstanceWorld:ancientvault_electric",
|
||||
"icon" : "default"
|
||||
},
|
||||
{
|
||||
"name" : "Ancient Vault - Ice",
|
||||
"planetName" : "ancientvault_ice",
|
||||
"warpAction" : "InstanceWorld:ancientvault_ice",
|
||||
"icon" : "default"
|
||||
}
|
||||
]
|
||||
}
|