1. 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 comminuty!

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

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Value doesnt readed

Discussion in 'Skript' started by lolplomer, Nov 9, 2019.

Tags:
  1. lolplomer

    lolplomer Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    Hello, im really confused of this.. I tried to make Mine 20 Ore quest but
    when i try to mine, the value doesnt added to the variable

    Code (Text):
    1. command /quest [<text>] [<player>]:
    2.     Executable by: console
    3.     trigger:
    4.         if arg 1 is "helper":
    5.             if arg 2 is not set:
    6.                 stop
    7.             else:
    8.                 open virtual chest inventory with 1 row named "&3&lHelper's Quest" to arg 2
    9.                 if {firstTalk.%arg-2%} is "gui":
    10.                     if {_blockMined.quest.%arg-2%} is greater than or equal to 20:
    11.                         format gui slot 0 of arg 2 with iron pickaxe named "&aMine 20 ores" with lore "" and "&bReward: &7$%{_blockMined.reward.%arg-2%}%" and "&bBlock mined: &720" and "&a&lCOMPLETED"
    12.                     else:
    13.                         format gui slot 0 of arg 2 with iron pickaxe named "&aMine 20 ores" with lore "" and "&bReward: &7$%{_blockMined.reward.%arg-2%}%" and "&bBlock mined: &7%{_blockMined.quest.%arg-2%}%" and "&c&lUNCOMPLETED"
    14.                     if {_blockMined.claimed.%arg-2%} is set:
    15.                         format gui slot 0 of arg 2 with iron pickaxe named "&aMine 20 ores" with lore "" and "&b&mReward: &7$%{_blockMined.reward.%arg-2%}%" and "&b&mBlock mined: &7%{_blockMined.quest.%arg-2%}%" and "&6&lCLAIMED"
    16.  
    17. on mine of any ore:
    18.     if {_blockMined.claimed.%player%} is not set:
    19.         add 1 to {_blockMined.quest.%player%}
    20.         if {_blockMined.quest.%player%} is greater than or equal to 20:
    21.             send ""
    22.             send "&7&kII &aYou have completed the helper quest &2(Mine 20 ores)&a!"
    23.             send "&8&kII &aGo to the helper to claim the quest!"
    24.             send ""
    25.  
    Help me plzz
     
  2. Vorze

    Vorze Well-Known Member

    Joined:
    Jul 10, 2017
    Messages:
    45
    Likes Received:
    2
    try delete underscore on variable
     
  3. lolplomer

    lolplomer Member

    Joined:
    Oct 18, 2019
    Messages:
    5
    Likes Received:
    0
    thx it work
     
Loading...