I have the troop ID stored into a variable but I can't seem to find a way to force it to leave.
A skill is used on enemy (done)-> Common event is triggered through skill (done) -> Skill grabs the enemy ID (done) -> Plays a scene with enemy (done)-> Enemy leaves (not done)
Are you sure you got the correct number?
Because enemy ID is the wrong number for fleeing.
There is enemy ID which identifies the type of enemy from the enemy database.
There is troop ID which identifies which troop of the troop database you have.
and there is enemy index, which gives the index number of the enemy in the troop array.
The last one is the only one that can make an enemy flee, because the IDs do not identify the enemy inside the troop but the base object in the database.
please show us a screenshot of what exactly you are doing.
And please, use the correct names - saying you have a troop ID means you have the wrong number, because you need the index and not an ID.