I'm helping a friend with his game and he wants to add a system where enemies can run away from battle only to later hijack other battles by surprise while also being stronger.
My solution to this is to have a Run Away skill that specific enemies can use, which activates a Common Event that checks the caster's database ID, let's say Enemy:008, and accordingly turn ON the Switch Enemy008Vendetta. However my issue comes with making said skill check for the enemy's database ID as all my attempts, i.e putting v[5] = b.id in the damage formula, but alas nothing works, you guys know how to achieve it ?
My solution to this is to have a Run Away skill that specific enemies can use, which activates a Common Event that checks the caster's database ID, let's say Enemy:008, and accordingly turn ON the Switch Enemy008Vendetta. However my issue comes with making said skill check for the enemy's database ID as all my attempts, i.e putting v[5] = b.id in the damage formula, but alas nothing works, you guys know how to achieve it ?

But maybe getting it from the common event would be better, since then you don't need to have the HP damage chosen).