Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Written by IchinoseYuki Discord:一ノ瀬雪#1027
- #Request: IY-Core Ver:1.0 or later
- on script load:
- broadcast "&e&l&k|||&9&l[&b&lIchinoseYuki Skript - Dice&9&l]&e&l&k|||&r &7Ver.1.0"
- command /dice [<string>] [<string>]:
- trigger:
- if arg-1 is not set:
- send "&4Error: &rSpecify argument for command." if {IY::config::%uuid of player%::language} is "en"
- send "&4失敗: &rコマンドの引数を指定してください。" if {IY::config::%uuid of player%::language} is "ja"
- send "&4Error: &rSpecify argument for command." if {IY::config::%uuid of player%::language} is not set
- stop
- if arg-1 parsed as number is not more than 0:
- if arg-2 is not set:
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "en"
- send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "ja"
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%" if {IY::config::%uuid of player%::language} is not set
- else:
- if arg-2 parsed as number is not more than 0:
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1% %arg-2%" if {IY::config::%uuid of player%::language} is "en"
- send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice &c&n%arg-1% %arg-2%" if {IY::config::%uuid of player%::language} is "ja"
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1% %arg-2%" if {IY::config::%uuid of player%::language} is not set
- else:
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%&7 %arg-2%" if {IY::config::%uuid of player%::language} is "en"
- send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice &c&n%arg-1%&7 %arg-2%" if {IY::config::%uuid of player%::language} is "ja"
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%&7 %arg-2%" if {IY::config::%uuid of player%::language} is not set
- stop
- if arg-2 is not set:
- send "&aSuccess: &rThe dice roll is %random integer between 1 and arg-1 parsed as number%." if {IY::config::%uuid of player%::language} is "en"
- send "&aSuccess: &rサイコロの目は%random integer between 1 and arg-1 parsed as number%です。" if {IY::config::%uuid of player%::language} is "ja"
- send "&aSuccess: &rThe dice roll is %random integer between 1 and arg-1 parsed as number%." if {IY::config::%uuid of player%::language} is not set
- stop
- if arg-2 is set:
- if arg-2 parsed as number is not more than 0:
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice %arg-1% &c&n%arg-2%" if {IY::config::%uuid of player%::language} is "en"
- send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice %arg-1% &c&n%arg-2%" if {IY::config::%uuid of player%::language} is "ja"
- send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice %arg-1% &c&n%arg-2%" if {IY::config::%uuid of player%::language} is not set
- stop
- loop arg-2 parsed as number time:
- add random integer between 1 and arg-1 parsed as number to {_d::*}
- send "&aSuccess: &rThe dice rolls are %{_d::*}%." if {IY::config::%uuid of player%::language} is "en"
- send "&aSuccess: &rサイコロの目は%{_d::*}%です。" if {IY::config::%uuid of player%::language} is "ja"
- send "&aSuccess: &rThe dice rolls are %{_d::*}%." if {IY::config::%uuid of player%::language} is not set
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement