Character given xp after a battle ends

I have all the code for my character to gain XP and level up. I have a function in my battle script that tells the game that you’ve won, but I need to figure out how I can get the battle script to send a signal to my player to tell it to reward XP, or something like that.

Is the battlescript attached to some kind of node in your scene tree?

Yes it is attached to a node where the player, the enemy, and the actions are being kept.

The solution:

Basically, I made a signal in the player scene that gets emitted from the battle script when the battle is won. I’ve tried this many times and it just worked for some reason this time.