I just recently started learning skript and decided to make some code where you can sort of "worship" gods to gain abilities. But i have a problem as my code is currently setup in a way as to where if im in water when i remove my poseidon thingy my positive effect stays after ive changed and so does the glowing on enemies. What would be the best way to fix this issue?
Script 1:
command /posiedon:
trigger:
if {god::%player%} is not "poseidon":
set {god::%player%} to "poseidon"
send "Posiedon took intrest in you."
else:
send "This god already has a liking in you"
command /nogod:
trigger:
delete {god::%player%}
send "All gods decided to stop paying attention to you"