I'm trying to clean up and condense some of my old code, but can't find a way to do this properly.
The original code is this:
What I want to do instead of that is like "if mining level or excavation level:"
While this reloads with no errors, it just doesn't run either check to cancel the event.
So overhead question: Can skript handle "or" comparisons like this? and if so, how do I properly format that?
The original code is this:
code_language.skript:
on mine of diamond ore:
set {_m} to false
if mining level of player < "300" parsed as an integer:
set {_m} to true
if excavation level of player < "60" parsed as an integer:
set {_m} to true
if {_m} is true:
message "&e&l[&d&l!&e&l] &r&7Level up to mine &9diamond&7. You need:"
message "&9Mining Lvl 300 &f:: &7Current Lvl %mining level of player%"
message "&9Excavation Lvl 60 &f:: &7Current Lvl %excavation level of player%"
cancel event
code_language.skript:
if mining level of player < 300 or excavation level of player < 60:
So overhead question: Can skript handle "or" comparisons like this? and if so, how do I properly format that?