If I'm right, I think it would need a for loop to target all the actors. I just don't know what the code would be exactly.
Something like
for(var i = 0; i < $gameParty.members.length(); i++) { $gameParty.members(i).hp + x; $gameParty.members(i).removeBuff };You might want to replace:
$gameParty.member(i)withBattleManager.actor(i)Of course you'd need some code in there for the actual damage and healing calculations.
Also, I wouldn't expect to plug this in and have it work as I am a Javascript n00b, but I'm sure someone can clean it up from here.
(So many edits, I shall not double post!)
I might have missed it, but is there a way to make sure attacks do at least 1 point of damage? Having NULL pop up when the party outlevels enemies is kinda sloppy looking. :c
edit: Nevermind! I got it!
@VHStapes, damage must be the last thing in the formula
Hey guys,
I'm trying to create a skill which will inflict state X at a 50% chance rate, ONLY when the enemy's darkness element rate is X. Any help?
Hey I dont know if it the right place to ask this, sorry in advance if it's not.
So I'm using small number in my game, ex: starting stat are around 30hp, 10 atk,10 def and so on.
But the default formula (a.atk*4 - b.def*2) make battle mostly once side for the fastest side.
So I tried takimg out the multiplier but the defence become way to strong for most battle.
So you guys/girls have any suggestion of what I could use ?
Thanks in advances.