Hello, I just posted a question about looping, but I realize I have another issue as well, that's mostly unrelated. Thanks in advance for any help! As mentioned, I am developing a Capture the Flag server with some twists, and I've just realized I dont know how to protect the flag while in transit.
Issues:
1. The flag can be dropped in the void, thrown at a cactus, burned, or the player holding it could die in the void. I need to avoid any of these things happening, obviously, or at least have some skript create a new flag when any of these things does happen.
Solutions I've considered:
1. Having a flag be recreated when the original is destroyed. (But I dont know how to detect when it is destroyed)
2. Having the flag never even enter inventory, and just attach to the players head when they click it. (But I can't figure out how to place the banner on the head, and it doesnt protect it from the player dying by some means)
I understand I've kind of requested a little much here, but if anyone has any ideas, PLEASE HELP me out! Very new to Skript.
Here is an example of a skript I have to place the flag on the players head: (Issue with it is 1. if I write "black_banner" instead of "banner" it runs into errors, and otherwise I get a random banner, half the time! and 2. It doesnt have a solution to if the player dies in the void or something.)
Maybe the answer is to combine the two solutions, and put the flag on the head, but also replace the flag automatically when its destroyed? If so, can I have help editing my code to do that?
Issues:
1. The flag can be dropped in the void, thrown at a cactus, burned, or the player holding it could die in the void. I need to avoid any of these things happening, obviously, or at least have some skript create a new flag when any of these things does happen.
Solutions I've considered:
1. Having a flag be recreated when the original is destroyed. (But I dont know how to detect when it is destroyed)
2. Having the flag never even enter inventory, and just attach to the players head when they click it. (But I can't figure out how to place the banner on the head, and it doesnt protect it from the player dying by some means)
I understand I've kind of requested a little much here, but if anyone has any ideas, PLEASE HELP me out! Very new to Skript.
Here is an example of a skript I have to place the flag on the players head: (Issue with it is 1. if I write "black_banner" instead of "banner" it runs into errors, and otherwise I get a random banner, half the time! and 2. It doesnt have a solution to if the player dies in the void or something.)
Maybe the answer is to combine the two solutions, and put the flag on the head, but also replace the flag automatically when its destroyed? If so, can I have help editing my code to do that?