So I worked out a way to have my player's sword be a sprite attached to him so that I can plug in different textures for different upgrades he may get so I don't need to have a ton of sprites the character drags around. I've set up my hitbox collisions to run their code "if area.is_in_group()" and the have different groups set up like "enemy", "bullet", "sword" and so on. An example of what I'm trying to do is this: when the player picks up a sword his hitbox is in group sword, when an enemy collides with that hitbox it checks if it's in group "sword" it will do 2 hp damage. but then he'll pick up a lightsaber and I'd like to change the hitbox's group to "saber" and then the enemy will have an if condition checking for that group and modify it's damage variable accordingly
Maybe this is a wonky way to achieve my goal here. But it will work if I can get the group to change. Perhaps when I learn more about using global variables I'll develop a better method