- Joined
- Jan 4, 2016
- Messages
- 67
- Reaction score
- 1
- Primarily Uses
hi from yanfly's phoenix ring tag code.....
<Custom Apply Effect>
if (target.isActor()) {
var ring = $dataArmors[4];
if (target.hasArmor(ring)) {
target.discardEquip(ring);
target.startAnimation(42);
var hp = Math.floor(target.mhp * 0.25);
target.gainHp(hp);
target.startDamagePopup();
}
}
</Custom Apply Effect>
the rings ID=4 armor type=Ring equipment type=Ring
problem = on death without the ring i still get the auto revive effect because the tag above is on the fallen state so death with or without the Phoenix Ring equipped still = auto revive at least once
how do i fix this?
also how i set it so it doesnt break the ring after auto revive happens but the effect will only happen once per battle?
http://yanfly.moe/2016/01/06/tips-tricks-phoenix-ring/
<Custom Apply Effect>
if (target.isActor()) {
var ring = $dataArmors[4];
if (target.hasArmor(ring)) {
target.discardEquip(ring);
target.startAnimation(42);
var hp = Math.floor(target.mhp * 0.25);
target.gainHp(hp);
target.startDamagePopup();
}
}
</Custom Apply Effect>
the rings ID=4 armor type=Ring equipment type=Ring
problem = on death without the ring i still get the auto revive effect because the tag above is on the fallen state so death with or without the Phoenix Ring equipped still = auto revive at least once
how do i fix this?
also how i set it so it doesnt break the ring after auto revive happens but the effect will only happen once per battle?
http://yanfly.moe/2016/01/06/tips-tricks-phoenix-ring/
