#Help Me

1 messages · Page 1 of 1 (latest)

tulip lance
#
  1. Use list variables
  2. That doesn’t look like an error I recognise.. if its from your IDE, just see what happens when you parse the script
kind cipher
#

what is a list variables?

#

@tulip lance

tulip lance
#

Dont ping me. Use :: instead of .

#

Its a good idea to use UUIDs too, but if your config was generated by 2.9+ you likely have a setting that replaces them for you

kind cipher
#

oh sorry. thank you

proper snow
#

what program is this

junior flume
proper snow
#

i use skeditor

junior flume
proper snow
#

thats not skeditor

#

i know how the errors look

#

and etc

#

thats not even the same style

junior flume
#

oh

kind cipher
#

i've resolved the problem, but i have another code that are saposed to gives attributes and passives to players in my rpg server... and for some reason, after i fixed all the errors, the attributes wont apply still..

#

==================================================

FILE: rpg/knight.sk

Skript 2.13.1 compatible

Requires: Skellett (for action bar & sound)

==================================================

------------------------

APPLY ATTRIBUTES ON JOIN

------------------------

on join:
if {class.%player%} is "Knight":
set max health of player to 30
heal player
apply resistance 1 to player for 10 seconds

    set {knight.strength.%player%} to 10
    set {knight.agility.%player%} to 5
    set {knight.intelligence.%player%} to 3

    send action bar "&7[&bKnight&7] Attributes applied." to player
    play sound "block.anvil.land" with volume 1 and pitch 1 to player

------------------------

PASSIVE 1 — Rage Parry

------------------------

on damage of player:
if {class.%victim%} is "Knight":
set {rage.%victim%} to damage
send action bar "&c⚔ Rage Stored: %{rage.%victim%}%!" to victim

on damage of entity by player:
if {class.%attacker%} is "Knight":
if {rage.%attacker%} is set:
set {_bonus} to {rage.%attacker%} * 0.7
set damage of event to damage of event + {_bonus}
send action bar "&c⚡ Rage Unleashed! +%{_bonus}% Damage!" to attacker
delete {rage.%attacker%}

------------------------

PASSIVE 2 — Impact of the Shield

------------------------

on damage of entity by player:
if {class.%attacker%} is "Knight":
set {_d} to damage of event
if {_d} >= 10:
apply slowness 3 to victim for 4 seconds
else if {_d} >= 5:
apply slowness 2 to victim for 3 seconds
else:
apply slowness 1 to victim for 2 seconds
send action bar "&7You slowed your target with &bImpact of the Shield&7!" to attacker
play sound "block.anvil.land" with volume 1 and pitch 1 to attacker

#

herese the example of the codes

#

do you guys have any ideas why it wont work or is there i need to install to make it work or anything else that would solve my problem?

tulip lance
#
  1. format your code on disord
  2. Use list variables
  3. "wont work" provides no insight. If you dont know what kind of issue you are experiencing, debug your code
kind cipher
# tulip lance 1. format your code on disord 2. Use list variables 3. "wont work" provides no i...

I'm not sure how can i format my code. can you please tell me how can i format it? next, i am too not sure about list variables. I'm really new to skript and i really needs to seek help from you guys. wont work means after i make the code, i tested it in games to make sure the attributes i set has been applied or not, but unfortunately it doesn't. I've tried using an AI to help me, that too has no impact. i couldn't find anywhere else to seek help from but here