- Joined
- Jul 13, 2017
- Messages
- 33
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- N/A
Hi,
So I've been working on a project to make an empowering ability and its been a bit finicky so far.
(I would put all of the common events and stuff so far, but it would take way too long!)
so i am now working on the attack formula for the spells.
When you empower yourself you are given the state "Empowered", "Empowered 2" , "Empowered 3" or "Empowered 4"
And then the attack formula checks what state you are effected with and then power it accordingly.
a.isStateAffected(12) ? 100 + v[23] * 12 + a.mat * 2 - b.mdf * 2 : 25 * a.mat * 2 - b.mdf * 2 ;
This was the first formula I used, and it worked, but it only worked for one character so i tried to make one that detected of you had been effected with "Empowered" or "Empowered 2", it still worked for actor one but for some reason did not work for actor 2, making the damage output 0:
a.isStateAffected(12) ? 100 + v[23] * 12 + a.mat * 2 - b.mdf * 2 : a.isStateAffected(13) ? 100 + v[25] * 12 + a.mat * 2 - b.mdf * 2 : 25 * a.mat * 2 - b.mdf * 2 ;
Anyone wanna help me out and fix the formula for me, or even tell me how to fix it?
So I've been working on a project to make an empowering ability and its been a bit finicky so far.
(I would put all of the common events and stuff so far, but it would take way too long!)
so i am now working on the attack formula for the spells.
When you empower yourself you are given the state "Empowered", "Empowered 2" , "Empowered 3" or "Empowered 4"
And then the attack formula checks what state you are effected with and then power it accordingly.
a.isStateAffected(12) ? 100 + v[23] * 12 + a.mat * 2 - b.mdf * 2 : 25 * a.mat * 2 - b.mdf * 2 ;
This was the first formula I used, and it worked, but it only worked for one character so i tried to make one that detected of you had been effected with "Empowered" or "Empowered 2", it still worked for actor one but for some reason did not work for actor 2, making the damage output 0:
a.isStateAffected(12) ? 100 + v[23] * 12 + a.mat * 2 - b.mdf * 2 : a.isStateAffected(13) ? 100 + v[25] * 12 + a.mat * 2 - b.mdf * 2 : 25 * a.mat * 2 - b.mdf * 2 ;
Anyone wanna help me out and fix the formula for me, or even tell me how to fix it?
