Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- delete {ookoku.card::*}
- add "職人" to {ookoku.card::*}
- add "山賊" to {ookoku.card::*}
- add "役人" to {ookoku.card::*}
- add "地下貯蔵庫" to {ookoku.card::*}
- add "礼拝堂" to {ookoku.card::*}
- add "議事堂" to {ookoku.card::*}
- add "祝祭" to {ookoku.card::*}
- add "庭園" to {ookoku.card::*}
- add "前駆者" to {ookoku.card::*}
- add "研究所" to {ookoku.card::*}
- add "書庫" to {ookoku.card::*}
- add "市場" to {ookoku.card::*}
- add "商人" to {ookoku.card::*}
- add "民兵" to {ookoku.card::*}
- add "鉱山" to {ookoku.card::*}
- add "堀" to {ookoku.card::*}
- add "金貸し" to {ookoku.card::*}
- add "密猟者" to {ookoku.card::*}
- add "改築" to {ookoku.card::*}
- add "衛兵" to {ookoku.card::*}
- add "鍛冶屋" to {ookoku.card::*}
- add "王座の間" to {ookoku.card::*}
- add "家臣" to {ookoku.card::*}
- add "村" to {ookoku.card::*}
- add "魔女" to {ookoku.card::*}
- add "工房" to {ookoku.card::*}
- command /newgame <number> <number>:
- usage: /newgame <最小人数> <最大人数>
- aliases: /ng
- trigger:
- if arg-1 > 1:
- if arg-2 < 5:
- if {game.%player%} is true:
- send "&c既にほかの部屋を作成しています。"
- else:
- command "/execute %player% ~ ~ ~ /playsound block.anvil.use master %player%"
- set {game.%player%} to true
- add player to {game::*}
- send "&a部屋を作成しました。"
- add player to {player.%player%::*}
- set {minplayer.%player%} to arg-1
- set {maxplayer.%player%} to arg-2
- else:
- send "&c最大人数は4以下である必要があります。"
- else:
- send "&c最小人数は2以上である必要があります。"
- command /leave:
- trigger:
- if {game::*} contains player:
- loop {player.%player%::*}:
- command "/execute %player% ~ ~ ~ /playsound block.iron_trapdoor.close master %player%"
- delete {game.%loop-value%}
- send "&cルームマスターが部屋を解散しました。" to loop-value
- remove player from {game::*}
- delete {player.%player%::*}
- send "&c部屋を削除しました。"
- else:
- if {game.%player%} is true:
- loop {game::*}:
- if {player.%loop-value%::*} contains player:
- remove player from {player.%loop-value%::*}
- send "&c部屋から退出しました。"
- command /room:
- trigger:
- command "/execute %player% ~ ~ ~ /playsound ui.button.click master %player%"
- open chest with 6 rows named "&6&l部屋を探す" to player
- set slot 48 of player's current inventory to glowstone dust named "&e&lレート" with lore "&7&l%{rate.%player's uuid%}%"
- if {game.%player%} is true:
- set slot 49 of player's current inventory to chest named "&6&lあなたの部屋" with lore "&7&l%number of {player.%player%::*}% / %{maxplayer.%player%}%"
- else:
- set slot 49 of player's current inventory to chest named "&6&lあなたの部屋" with lore "&c&lまだ部屋を立てていません。"
- set {slotnum} to 0
- loop {game::*}:
- if {minplayer.%loop-value%} > number of {player.%loop-value%::*}:
- set slot {slotnum} of player's current inventory to white shulker box named "&8&l%loop-value%" with lore "&7&l%number of {player.%loop-value%::*}% / %{maxplayer.%loop-value%}%" and "&f&l部屋が空いています。"
- if {minplayer.%loop-value%} <= number of {player.%loop-value%::*}:
- set slot {slotnum} of player's current inventory to yellow shulker box named "&8&l%loop-value%" with lore "&7&l%number of {player.%loop-value%::*}% / %{maxplayer.%loop-value%}%" and "&e&lまもなくゲームが始まります。"
- if {maxplayer.%loop-value%} = number of {player.%loop-value%::*}:
- set slot {slotnum} of player's current inventory to red shulker box named "&8&l%loop-value%" with lore "&7&l%number of {player.%loop-value%::*}% / %{maxplayer.%loop-value%}%" and "&c&l部屋がいっぱいです。"
- add 1 to {slotnum}
- command /start:
- trigger:
- if {game::*} contains player:
- if {minplayer.%player%} <= number of {player.%player%::*}:
- set {_ookokucard::*} to {ookoku.card::*}
- loop 10 times:
- add random string of {_ookokucard::*} to {_ookokucard}
- remove {_ookokucard} from {ookokucard.%player%::*}
- add {_ookokucard} to {ookokucard.%player%::*}
- delete {_ookokucard}
- loop {player.%player%::*}:
- send "&b今回の王国カードはこちらです。"
- send "&3&l%{ookokucard.%player%::*}%"
- set {point.%loop-value-1%} to 3
- set {decknumber.%loop-value-1%} to 0
- set {myroom.%loop-value-1%} to player
- loop 7 times:
- add "銅貨" to {deck.%loop-value-1%::*}
- loop 3 times:
- add "屋敷" to {deck.%loop-value-1%::*}
- set {_loop} to number of {deck.%loop-value-1%::*}
- loop {_loop} times:
- add 1 to {decknumber.%loop-value-1%}
- set {_mycard} to random string of {deck.%loop-value-1%::*}
- set {deck.%{decknumber.%loop-value-1%}%.%loop-value-1%} to {_mycard}
- remove {_mycard} from {deck.%loop-value-1%::*}
- set {_slot} to 1
- loop 7 times:
- add 1 to {_slot}
- set slot {_slot} of loop-value-1's inventory to light gray stained glass pane
- set {_turnplayer} to random player of {player.%{myroom.%loop-value-1%}%::*}
- loop 100 times:
- loop 5 times:
- set {_mycard} to random string of {deck.%loop-value-1%::*}
- if {_mycard} = "銅貨":
- give brick named "&6銅貨" with lore "&e&l➀" and "-------------------" and "&e&l" to loop-value-1
- if {_mycard} = "銀貨":
- give iron ingot named "&7銀貨" with lore "&e&l➁" to loop-value-1
- if {_mycard} = "金貨":
- give gold ingot named "&e金貨" with lore "&e&l➂" to loop-value-1
- if {_mycard} = "屋敷":
- give apple named "&2屋敷" with lore "&a&l➀" to loop-value-1
- if {_mycard} = "公領":
- give golden apple named "&2公領" with lore "&a&l➂" to loop-value-1
- if {_mycard} = "属州":
- give enchanted golden apple named "&2属州" with lore "&a&l➅" to loop-value-1
- if {_mycard} = "職人":
- give bread named "&6職人" with lore "&8コスト&e&l➄&8までのカード1枚を獲得し、" and "&8あなたの手札に加える。" and "&8手札を1枚、デッキの上に置く。" to loop-value-1
- if {_mycard} = "研究所":
- give potion named "&7研究所" with lore "&0&l+2 カードを引く" and "&0&l+1 アクション" to loop-value-1
- if {_mycard} = "密猟者":
- give bow named "&a密猟者" with lore "&0&l+1 カードを引く" and "&0&l+1 アクション" and "&0&l+ &e&l➀" to loop-value-1
- if {_mycard} = "改築":
- give oak wood plank named "&b改築" with lore "&8あなたの手札のカードを1枚廃棄する。" and "&8廃棄したカードよりコストが最大&e&l➁" and "&8多いカードを1枚獲得する。" to loop-value-1
- if {_mycard} = "村":
- give grass named "&2村" with lore "&0&l+1 カードを引く" and "&0&l+2 アクション" to loop-value-1
- if {_mycard} = "鍛冶屋":
- give anvil named "&8鍛冶屋" with lore "&0&l+3 カードを引く" to loop-value-1
- if {_mycard} = "民兵":
- give iron sword named "&f民兵" with lore "&0&l+ &e&l➁" and "&8他のプレイヤーは全員、自分の手札" and "&8が3枚になるまで住手札する。" to loop-value-1
- if {_mycard} = "山賊":
- give gold nugget named "&9山賊" with lore "&8金貨を1枚獲得する。他のプレイヤーは" and "&8山札の上からカードを2枚公開して、" and "&8公開された銅貨以外の財宝カードを" and "&8ランダムで一枚廃棄し、残りのカードを捨て札にする。" to loop-value-1
- if {_mycard} = "衛兵":
- give shield named "&c衛兵" with lore "&0&l+1 カードを引く" and "&0&l+1 アクション" and "&8デッキの上から2枚のカードを見て、" and "&8その中から好きな枚数を廃棄し、" and "&8好きな枚数を捨て札にする。残った" and "&8カードを好きな順番で山札に戻す。" to loop-value-1
- if {_mycard} = "金貸し":
- give paper named "&e金貸し" with lore "&8あなたの手札から銅貨を1枚廃棄する。" and "&8そうした場合&0&l+&e&l➂&8を使用できる。" to loop-value-1
- if {_mycard} = "礼拝堂":
- give torch named "&d礼拝堂" with lore "&8あなたの手札から、" and "&8最大4枚までのカードを廃棄する。" to loop-value-1
- if {_mycard} = "衛兵":
- give shield named "&c衛兵" with lore "&0&l+1 カードを引く" and "&0&l+1 アクション" and "&8デッキの上から2枚のカードを見て、" and "&8その中から好きな枚数を廃棄し、" and "&8好きな枚数を捨て札にする。残った" and "&8カードを好きな順番で山札に戻す。" to loop-value-1
- on inventory click:
- if name of player's current inventory contain "&6&l部屋を探す":
- cancel event
- command "/execute %player% ~ ~ ~ /playsound ui.button.click master %player%"
- loop {game::*}:
- if name of clicked item is "&8&l%loop-value%":
- close player's inventory
- if {game.%player%} is true:
- send "&c既にほかの部屋に入っています。"
- else:
- if {maxplayer.%loop-value%} = number of {player.%loop-value%::*}:
- send "&c既に部屋が埋まっています。"
- command "/execute %player% ~ ~ ~ /playsound entity.endermen.teleport master %player% ~ ~ ~ 1 0"
- else:
- set {game.%player%} to true
- add player to {player.%loop-value%::*}
- send "&a部屋に入りました。"
- command "/execute %player% ~ ~ ~ /playsound entity.arrow.hit_player master %player%"
- on quit:
- if {game::*} contains player:
- loop {player.%player%::*}:
- delete {game.%loop-value%}
- send "&cルームマスターが部屋を解散しました。" to loop-value
- remove player from {game::*}
- delete {player.%player%::*}
- if {game.%player%} is true:
- loop {game::*}:
- if {player.%loop-value%::*} contains player:
- remove player from {player.%loop-value%::*}
Add Comment
Please, Sign In to add comment