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 out 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.

Solved Need Help Getting Integer Varibles In Lore

Discussion in 'Skript' started by Baezor, Feb 19, 2020.

Thread Status:
Not open for further replies.
  1. Baezor

    Baezor Member

    Joined:
    Jan 3, 2020
    Messages:
    14
    Likes Received:
    6
    Skript Version: 2.5
    Skript Author: Bensku
    Minecraft Version: 1.15.2

    Full Code

    https://pastebin.com/3kSFcyuv

    Problem
    If you look in the screenshot, you can see the variables the skript prints out. My problem is the lore variables are not being added to the defense, vitality, or max health. There are no skript reloading errors, and I have no idea why it is not being added to the variables.
    --- Double Post Merged, Feb 19, 2020, Original Post Date: Feb 19, 2020 ---
    I fixed it! For anybody who has the same issue, just add "parsed as integer" to the end of where you set the variable.
     

    Attached Files:

  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    419
    Likes Received:
    30
    You DO realize if you want to show the value of a variable, you don't need to add the entire "parsed as integer" part. You can just surround the variable with percentage signs. [%] Here is an example:
    Code (Text):
    1. on craft:
    2.     set {_item} to event-item
    3.     broadcast "&a%player% just crafted %{_item}%"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...