Selecting {_block} and changing a variable?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

InTheVan

Member
Sep 16, 2017
4
0
0
command /gen10 <text>:
trigger:
if player has permission "gen.admin":
if arg 1 is "upgrade":
if targeted block is cobblestone:
set {_block} to target block
if player's level is larger than 59:
reduce the player's level by 60
if {vip.%Block%}::%{_block}%} is true:
set {vip.%Block%}::%{_block}%} to false
set {vip2.%Block%}::%{_block}%} to true
send "&aGenerator has been upgraded"
else:
send "&8&l(&5&lDivine&7&lCrystals&8&l) &7You need to have atleast 60 levels to upgrade your generator!"
stop

anyone know how to select {_block} and change {vip.%block%} in 1 line of code?
 
Status
Not open for further replies.