Change a variable when using an item

So I've seen that MV allows script to be placed into the Damage Formula.
Is this possible in VXAce? or is calling a common event the only way to run script? If so does anyone know of a script that adds this functionality?
You just put v[x]=whatever you want to change it to in the damage formula. If the item is supposed to do some damage/recovery, then use ";" and put the damage after that. Like this:

v[100]=45 ; 20

It will change variable 100 to 45 and do 20 damage/recovery.
@EntangledPear
So what am i doing wrong? Despite adding v[6]=1, then using the item, later calling \v[6] in a ShowText command results in 0 not 1
The item/skill has to have a scope in order for the formula to be evaluated, because the formula is run by the targeted battlers.
@DrDhoom
Changing scope to ThisUser causes the item to be un-usable, making the error sound if I try to use it in-game, should I change the scope to OneAlly or AllAllies or even change the formula to v[6]=1 ; 0 or v[6]=1 ; 1, the problem still persists.
Try this
1718891376394.png
[Solved] Thanks Roninator2, DrDhoom, EntangledPear

Using an item to change a variable from the menu;
- Scope set to TheUser
- DamageType can be any
- Formula v[x]=y;0 the zero is needed to avoid the default of 1
- Effects GainTP0% because the item needs something to apply to TheUser

Original thread: https://forums.rpgmakerweb.com/threads/change-a-variable-when-using-an-item.169642/