Hello. I'm using Hime's Cover condition script and I'd like to add some cover conditions to certain character. I'd like some help to set them.
1) This character will cover all allies who are under 20% of Max HP
2) This character will cover allies only from physical attacks
3) This character will have a chance to cover healthy allies, this chance will be (user's luck / 192) (That means the higher this character's luck, he'll have a bigger chance to cover healthy allies)
4) This character won't be able to cover allies if he has the states 20 and 21
I know this is a quite complicated condition set, but the first two are quite easy to create (I think) based in Hime's instructions in this script, I think I can replicate the first 2 conditions
Another thing is this script doesn't allow to check the target will be covering allies' stats (at least not using a - the battler that is currently executing its action conditions in this script) but this can be "easily" solved because this cover ability will only be usable by the actor with the ID 2, so I think this can be solved using p - game party tags.
So here is it. Again, I know it's a bit complicated request, but does someone know how to fit all those conditions? Thank you
1) This character will cover all allies who are under 20% of Max HP
2) This character will cover allies only from physical attacks
3) This character will have a chance to cover healthy allies, this chance will be (user's luck / 192) (That means the higher this character's luck, he'll have a bigger chance to cover healthy allies)
4) This character won't be able to cover allies if he has the states 20 and 21
I know this is a quite complicated condition set, but the first two are quite easy to create (I think) based in Hime's instructions in this script, I think I can replicate the first 2 conditions
Code:
<cover condition>
b.hp < b.mhp / 5 && (i || i.physical?)
</cover condition>
Another thing is this script doesn't allow to check the target will be covering allies' stats (at least not using a - the battler that is currently executing its action conditions in this script) but this can be "easily" solved because this cover ability will only be usable by the actor with the ID 2, so I think this can be solved using p - game party tags.
So here is it. Again, I know it's a bit complicated request, but does someone know how to fit all those conditions? Thank you