Hmm, are you sure? I know for example you can add states with a formula like this:
a.addState(id); (a.atk * 1.3 - b.def)
This example would deal damage to the enemy and give state xy to the user. Taking this in mind i thought it must be possible to use something like a.ifstate(id); b.addstate(id)
You will have to use a FOR statement in your formule if you would want to copy every state the target has with one skill.
And you wanted to only copy beneficial states? If so it will get a little bigger.
Hey there, could you explain me what exactly a FOR statement is?
I want to create a formula for a combined skill between actor 1 and actor 2 (either performed by actor 1 or actor 2) where the damage is the sum of actor 1 attack and actor 2 magic attack.
If I enter "$gameActors.actor(1).param[2] + $gameActors.actor(2).param[4]", it make 1 damage. Formula error ? Or correct formula but plugins incompatibility ?
Somebody to help with my above problem ? It has been 3 days that I torture myself 🙁
So, I ran into an issue with Absorption Barrier. I tried to make an attack that would deal good damage against enemy barriers, but otherwise deal normal damage.
What I managed does deal good damage to barriers, however it also deals 0 hp damage every time I attack, and once the barrier is gone it only deals that 0 damage.
It's even on my actor with the highest attack, and the others do deal succesful hp damage to the enemy.
Help?
Edit: Nevermind I'm an idiot everything works now, I had removed the multiplier from the normal attack damage.
Hi I don't know if this is possible. But can anyone help me with a formula where lets say actor one has an atk of 12 he will do anywhere from 1 to 12 points of damage and then do the same with the opponts def and have the atk amount subtract from the def amount
I have a D&D type of formula that i want to use in a game I'm making and it's very close to what i need. However there's one part I'm having trounble with. if (b.def <= (Math.randomInt(20) + 1 + a.atk)) Math.randomInt(4) + 1 + a.atk; else 0 is the formula.
if (b.def <= (Math.randomInt(20) + 1 + a.atk)) is what determines if you hit or miss.
Math.randomInt(4) + 1 + a.atk is what determines the damage.
My question is for the damage part instead of using the players over all atk. Is it possible to only use the weapons atk stat
Hi wanted to thank everyone for their help with my D&D style Damage Formula and decided to upload it here.
if (b.def <= (Math.randomInt(20) + 1 + a.atk + Math.floor(v[1]-10)/2)) Math.randomInt(4) + 1 + Math.floor(v[1]-10)/2; else 0
if (b.def <= (Math.randomInt(20)+ 1 + a.atk + Math.floor(v[1]-10)/2)) This is the attack roll that decides if you hit or miss
if (b.def <= (Math.randomInt(20) + 1 is the dice roll that results in a number from 1 to 20. Then you add your overall atk as the Proficiency bonus. Then Math.floor(v[1]-10)/2)) as the part that determines your ability score. With this part you will have to create a variable to act as the six basic skill.
I recommend using yanfly's actor variables just to keep track of them in game.
Math.randomInt(4) + 1 + Math.floor(v[1]-10)/2; else 0 is the damage roll
Math.randomInt(4) + 1 is the basic dice roll. Just repe lace the 4 with the type of dice roll you want. 4 for a d4 dice 6 for d6 etc.
Math.floor(v[1]-10)/2 this is you ability score again.
else 0 just reduces all damage to 0 if your attack roll doesn't beat out your opponents. As I couldn't figure out how to do a miss.