(Help) Defining Variable as a function

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Toadyboii

New Member
Jan 31, 2024
9
0
1
15
Hello,
im quite new to skript so im not sure of how to do this.
This is my current code:

variables:
{Souls} = 1
{SoulDMGHP} = (2+{Souls}/10)
{SoulTimer} = (2+{Souls}/25)

However it doesnt understand the functions that i want to use to determine the variables.Is there a way to fix this/do it some other way?
If you are wondering,the code is used for a weapon that collects souls on kill.Every 10 kills it gains 1 attack damage and gives the player 1 max health.
Every 25 kills it increases the level of the wither effect it applies on hit.

thank you
 
Hello,
im quite new to skript so im not sure of how to do this.
This is my current code:
variables:
{Souls} = 1
{SoulDMGHP} = (2+{Souls}/10)
{SoulTimer} = (2+{Souls}/25)
However it doesnt understand the functions that i want to use to determine the variables.Is there a way to fix this/do it some other way?
If you are wondering,the code is used for a weapon that collects souls on kill.Every 10 kills it gains 1 attack damage and gives the player 1 max health.
Every 25 kills it increases the level of the wither effect it applies on hit.
thank you
 

Attachments

  • HNI_0001.JPG
    HNI_0001.JPG
    42.9 KB · Views: 33