Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {bs.%player%.strength} = 0 #筋力
- {bs.%player%.intellect} = 0 #知力
- {bs.%player%.spell} = 0 #魔力
- {bs.%player%.dexterity} = 0 #器用さ
- {bs.%player%.bravery} = 0 #勇気
- {bs.%player%} = 0
- on first join:
- set {bs.%player%} to 0
- On SkillAPI level up:
- add 1 to {bs.%player%}
- command /skill [<text>] [<text>] [<text>]:
- trigger:
- if arg-1 is "bp":
- if arg-2 is not set:
- if arg-3 is not set:
- open virtual chest inventory with size 1 named "&a残り&cBP &7: &e%{bs.%player%}%" to player
- create a gui slot 0 of player with iron sword named "&c筋力" to close then run player command "skill up 筋力"
- create a gui slot 1 of player with redstone named "&c知力" to close then run player command "skill up 知力"
- create a gui slot 2 of player with book named "&c魔力" to close then run player command "skill up 魔力"
- create a gui slot 3 of player with bow named "&c器用さ" to close then run player command "skill up 器用さ"
- create a gui slot 4 of player with nether star named "&c勇気" to close then run player command "skill up 勇気"
- if arg-1 is "up":
- if arg-3 is not set:
- if {bs.%player%} is more than 1:
- if arg-2 is "筋力":
- add 1 to {bs.%player%.strength}
- remove 1 from {bs.%player%}
- send "BPを筋力に振りました" to player
- if arg-2 is "知力":
- add 1 to {bs.%player%.intellect}
- remove 1 from {bs.%player%}
- send "BPを知力に振りました" to player
- if arg-2 is "魔力":
- add 1 to {bs.%player%.spell}
- remove 1 from {bs.%player%}
- send "BPを魔力に振りました" to player
- if arg-2 is "器用さ":
- add 1 to {bs.%player%.dexterity}
- remove 1 from {bs.%player%}
- send "BPを器用さに振りました" to player
- if arg-2 is "勇気":
- add 1 to {bs.%player%.bravery}
- remove 1 from {bs.%player%}
- send "BPを勇気に振りました" to player
- else:
- send "&cBPが足りません" to player
- if arg-1 is "reset":
- if arg-2 is not set:
- if arg-3 is not set:
- add {bs.%player%.strength} to {bs.%player%}
- add {bs.%player%.intellect} to {bs.%player%}
- add {bs.%player%.spell} to {bs.%player%}
- add {bs.%player%.dexterity} to {bs.%player%}
- add {bs.%player%.bravery} to {bs.%player%}
- set {bs.%player%.strength} to 0
- set {bs.%player%.intellect} to 0
- set {bs.%player%.spell} to 0
- set {bs.%player%.dexterity} to 0
- set {bs.%player%.bravery} to 0
- if arg-1 is "stats":
- if arg-2 is not set:
- if arg-3 is not set:
- send "&a---------------[ &cBP &a]---------------" to player
- send "&c筋力 &7: &e%{bs.%player%.strength}%" to player
- send "&f知力 &7: &e%{bs.%player%.intellect}%" to player
- send "&d魔力 &7: &e%{bs.%player%.spell}%" to player
- send "&a器用さ &7: &e%{bs.%player%.dexterity}%" to player
- send "&6勇気 &7: &e%{bs.%player%.bravery}%" to player
- send "&a---------------[ &cBP &a]---------------" to player
- if arg-1 is "add":
- if arg-2 is player:
- if arg-3 is number:
- if player has permission "skript.bp.add":
- add arg-3 to {bs.%arg 2%}
- if arg-1 is "remove":
- if arg-2 is player:
- if arg-3 is number:
- if player has permission "skript.bp.remove":
- remove arg-3 from {bs.%arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement