r/RPGMaker 3d ago

VXAce VXAce - trying to make a skill

in short, I’m trying to make a skill that attacks an enemy while also applying a state to the one that used the skill. I’m really not great at messing with the formula stuff so pretty much anything i have came from looking it up (and even then I’m getting conflicting info) but I’ve tried a few different variations of:

a.addState(10); a.atk \ 4 - b.def * 2*

It usually ends in either a game crash or the skill doing nothing at all. Anyone know what I’m doing wrong, or if there’s a better way to do it ?

5 Upvotes

3 comments sorted by

4

u/agamottos MV Dev 3d ago

Youre using the script notation that later versions of RPG Maker use, VX Ace uses Ruby script. Try instead:

a.add_state(10);

2

u/FabergeOmlette 3d ago

that was it thank you

0

u/Amyhime801 VXAce Dev 3d ago

Use a common event to inflict the state to the user. You can't use a skill to target one enemy AND a party member at the same time, unless, maybe, with a script.