-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skin memory! woo! and some bug fixes
- Loading branch information
1 parent
8ba5455
commit de45fe8
Showing
15 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$execute if data storage ssbrc:data player.data."$(uuid)".$(fighter)_skin run return run data modify storage ssbrc:temp arguments.skin set from storage ssbrc:data player.data."$(uuid)".$(fighter)_skin | ||
|
||
$function ssbrc:logic/player/data/permanent/set {mode:"store",key:"$(fighter)_skin",value:"default"} | ||
data modify storage ssbrc:temp arguments.skin set value "default" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$execute if data storage ssbrc:data player.data."$(uuid)".$(fighter)_skin run return run function ssbrc:logic/player/data/temp/set {mode:"store",key:"skin",value:"$(skin)"} | ||
|
||
execute unless entity @s[tag=picking_random] run function ssbrc:logic/player/data/temp/set {mode:"store",key:"skin",value:"default"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 14 additions & 35 deletions
49
data/ssbrc/function/logic/game/options/trigger.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,21 @@ | ||
execute if score @s options_trigger matches 1 run function ssbrc:logic/game/options/game_mode/stock | ||
execute if score @s options_trigger matches 2 run function ssbrc:logic/game/options/game_mode/time | ||
execute if score @s options_trigger matches 1 run return run function ssbrc:logic/game/options/game_mode/stock | ||
execute if score @s options_trigger matches 2 run return run function ssbrc:logic/game/options/game_mode/time | ||
|
||
execute if score @s options_trigger matches 3 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"1"} | ||
execute if score @s options_trigger matches 4 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"2"} | ||
execute if score @s options_trigger matches 5 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"3"} | ||
execute if score @s options_trigger matches 6 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"4"} | ||
execute if score @s options_trigger matches 7 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"5"} | ||
execute if score @s options_trigger matches 8 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"6"} | ||
execute if score @s options_trigger matches 9 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"7"} | ||
execute if score @s options_trigger matches 10 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"8"} | ||
execute if score @s options_trigger matches 11 if score game_mode options matches 1 run function ssbrc:logic/game/options/stock_limit {value:"9"} | ||
execute if score @s options_trigger matches 3..11 run return run function ssbrc:logic/game/options/trigger/check | ||
|
||
execute if score @s options_trigger matches 3 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"1"} | ||
execute if score @s options_trigger matches 4 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"2"} | ||
execute if score @s options_trigger matches 5 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"3"} | ||
execute if score @s options_trigger matches 6 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"4"} | ||
execute if score @s options_trigger matches 7 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"5"} | ||
execute if score @s options_trigger matches 8 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"6"} | ||
execute if score @s options_trigger matches 9 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"7"} | ||
execute if score @s options_trigger matches 10 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"8"} | ||
execute if score @s options_trigger matches 11 if score game_mode options matches 2 run function ssbrc:logic/game/options/time_limit {value:"9"} | ||
execute if score @s options_trigger matches 12 run return run function ssbrc:logic/game/options/teams/on | ||
execute if score @s options_trigger matches 13 run return run function ssbrc:logic/game/options/teams/off | ||
|
||
execute if score @s options_trigger matches 12 run function ssbrc:logic/game/options/teams/on | ||
execute if score @s options_trigger matches 13 run function ssbrc:logic/game/options/teams/off | ||
execute if score @s options_trigger matches 14 run return run function ssbrc:logic/game/options/friendly_fire/on | ||
execute if score @s options_trigger matches 15 run return run function ssbrc:logic/game/options/friendly_fire/off | ||
|
||
execute if score @s options_trigger matches 14 run function ssbrc:logic/game/options/friendly_fire/on | ||
execute if score @s options_trigger matches 15 run function ssbrc:logic/game/options/friendly_fire/off | ||
execute if score @s options_trigger matches 16 run return run function ssbrc:logic/game/options/hazards/on | ||
execute if score @s options_trigger matches 17 run return run function ssbrc:logic/game/options/hazards/off | ||
|
||
execute if score @s options_trigger matches 16 run function ssbrc:logic/game/options/hazards/on | ||
execute if score @s options_trigger matches 17 run function ssbrc:logic/game/options/hazards/off | ||
execute if score @s options_trigger matches 18 run return run function ssbrc:logic/game/options/blind_pick/on | ||
execute if score @s options_trigger matches 19 run return run function ssbrc:logic/game/options/blind_pick/off | ||
|
||
execute if score @s options_trigger matches 18 run function ssbrc:logic/game/options/blind_pick/on | ||
execute if score @s options_trigger matches 19 run function ssbrc:logic/game/options/blind_pick/off | ||
execute if score @s options_trigger matches 20 run return run function ssbrc:logic/game/options/music/shuffle | ||
execute if score @s options_trigger matches 21 run return run function ssbrc:logic/game/options/music/loop | ||
|
||
execute if score @s options_trigger matches 20 run function ssbrc:logic/game/options/music/shuffle | ||
execute if score @s options_trigger matches 21 run function ssbrc:logic/game/options/music/loop | ||
|
||
execute if score @s options_trigger matches 9999 run function ssbrc:logic/game/options/default | ||
|
||
scoreboard players reset @s options_trigger | ||
scoreboard players enable @s options_trigger | ||
function ssbrc:logic/game/options/default |
3 changes: 3 additions & 0 deletions
3
data/ssbrc/function/logic/game/options/trigger/check.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execute if score game_mode options matches 2 run return run function ssbrc:logic/game/options/trigger/mode_limit {mode:"time"} | ||
|
||
function ssbrc:logic/game/options/trigger/mode_limit {mode:"stock"} |
17 changes: 17 additions & 0 deletions
17
data/ssbrc/function/logic/game/options/trigger/mode_limit.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$execute if score @s options_trigger matches 3 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"1"} | ||
|
||
$execute if score @s options_trigger matches 4 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"2"} | ||
|
||
$execute if score @s options_trigger matches 5 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"3"} | ||
|
||
$execute if score @s options_trigger matches 6 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"4"} | ||
|
||
$execute if score @s options_trigger matches 7 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"5"} | ||
|
||
$execute if score @s options_trigger matches 8 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"6"} | ||
|
||
$execute if score @s options_trigger matches 9 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"7"} | ||
|
||
$execute if score @s options_trigger matches 10 run return run function ssbrc:logic/game/options/$(mode)_limit {value:"8"} | ||
|
||
$execute if score @s options_trigger matches 11 run function ssbrc:logic/game/options/$(mode)_limit {value:"9"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
data/ssbrc/function/logic/player/data/permanent/copy/set.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$data modify storage ssbrc:temp player.temp_data set from storage ssbrc:data player.data.$(UUID) | ||
$data modify storage ssbrc:temp player.temp_data set from storage ssbrc:data player.data."$(UUID)" |
2 changes: 1 addition & 1 deletion
2
data/ssbrc/function/logic/player/data/permanent/init.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$data modify storage ssbrc:data player.data."$(UUID)" set value {mario_skin:"default"} | ||
$data modify storage ssbrc:data player.data."$(UUID)" merge value {mario_skin:"default"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
data/ssbrc/function/logic/player/data/permanent/store.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
$data modify storage ssbrc:data player.temp_data[$(index)].$(key) set value "$(value)" | ||
$data modify storage ssbrc:data player.data."$(uuid)".$(key) set value "$(value)" | ||
|
||
$say data modify storage ssbrc:data player.data."$(uuid)".$(key) set value "$(value)" |
3 changes: 0 additions & 3 deletions
3
data/ssbrc/function/logic/pre_game/fighter_select/trigger/loadout.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
execute if data storage ssbrc:temp player.temp_data{fighter:"byleth"} run function ssbrc:fighter/byleth/menu/loadout/trigger | ||
|
||
execute if data storage ssbrc:temp player.temp_data{fighter:"snake"} run function ssbrc:fighter/snake/menu/loadout/trigger | ||
|
||
scoreboard players set @s character_trigger 0 | ||
scoreboard players enable @s character_trigger |
4 changes: 2 additions & 2 deletions
4
data/ssbrc/function/stage/miiverse/logic/posts/origin/summon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
execute unless score debug options matches 1 run function ssbrc:stage/miiverse/logic/posts/origin/summon/default | ||
execute if score debug options matches 1 run return run function ssbrc:stage/miiverse/logic/posts/origin/summon/debug | ||
|
||
execute if score debug options matches 1 run function ssbrc:stage/miiverse/logic/posts/origin/summon/debug | ||
function ssbrc:stage/miiverse/logic/posts/origin/summon/default |