Solved Player Strength Stat

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

Idiosyncratic

Member
Feb 21, 2017
62
0
0
USA
I'm making a strength stat for players but ran into a problem. Whenever I try to add my variable into a damage calculation I get this error:
View attachment 499

My code is:
code_language.skript:
on damage:
 damage = damage + %{strength.%player%}% * 2
 
I'm making a strength stat for players but ran into a problem. Whenever I try to add my variable into a damage calculation I get this error:
View attachment 499

My code is:
code_language.skript:
on damage:
 damage = damage + %{strength.%player%}% * 2
There is no attachment... May you re-upload one
[doublepost=1490107216,1490107101][/doublepost]
I'm making a strength stat for players but ran into a problem. Whenever I try to add my variable into a damage calculation I get this error:
View attachment 499

My code is:
code_language.skript:
on damage:
 damage = damage + %{strength.%player%}% * 2
Oh! And you have to leave out the % before and after there variable because the % is used to convert the variable into a text :emoji_wink:
 
  • Like
Reactions: Chaositic
Thanks, but I already managed to figure it out with some help from my last post. Thanks anyway!
 
Status
Not open for further replies.