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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Firstly, format your code. Also, you should explain what part of your code doesn't work for better assistance.command CiTransform:
trigger:
if player has permission "skript.CD":
set player's group to "Ci"
on death:
if player's group is "Ci"
set player's group to "default"
command CiTransform:
trigger:
if player has permission "skript.CD":
set player's group to "Ci"
on death:
if player's group is "Ci"
set player's group to "default"
command CiTransform:
trigger:
if player has permission "skript.CD":
set player's group to "Ci"
on death:
if player's group is "Ci"
set player's group to "default"
This wouldn't work, as your syntax is incorrect.I found your issue. In your "on death" event, you cannot use player. You have to use victim. Also make sure to check that the victim is a player before setting the victim's group/checking it.Code:command CiTransform: trigger: if player has permission "skript.CD": set player's group to "Ci" on death: if player's group is "Ci" set player's group to "default"
command CiTransform:
trigger:
if player has permission "skript.CD":
set player's group to "Ci"
on death:
if victim's group is "Ci"
set victim's group to "default"
Wdym syntax is incorrect? You don't have to add spaces in between each line of code.This wouldn't work, as your syntax is incorrect.
Code:command CiTransform: trigger: if player has permission "skript.CD": set player's group to "Ci" on death: if victim's group is "Ci" set victim's group to "default"
Wdym syntax is incorrect? You don't have to add spaces in between each line of code.
Keep in mind, I did not fix the code for them. I formatted their original code for them then explained the issues with their existing code.This wouldn't work, as your syntax is incorrect.
Code:command CiTransform: trigger: if player has permission "skript.CD": set player's group to "Ci" on death: if victim's group is "Ci" set victim's group to "default"
command CiTransform:
trigger:
if player has permission "skript.CD":
command /ci-transform:
permission: skript.cd
trigger:
You mean as in the fact they used player instead of victim? I thought @Luke_Sky_Walker pointed that out.This wouldn't work, as your syntax is incorrect.
Code:command CiTransform: trigger: if player has permission "skript.CD": set player's group to "Ci" on death: if victim's group is "Ci" set victim's group to "default"
The skript should work fine if you have vault.I found your issue. In your "on death" event, you cannot use player. You have to use victim. Also make sure to check that the victim is a player before setting the victim's group/checking it.Code:command CiTransform: trigger: if player has permission "skript.CD": set player's group to "Ci" on death: if player's group is "Ci" set player's group to "default"
It won't. You can't use capital letters. Also, no matter what, you cannot use player instead of victim ; otherwise it would be impossible to clarify attacker .The skript should work fine if you have vault.