help with Phoenix Ring tag code

sirkos

Veteran
Veteran
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/

 
 

lithkast

Quirky mini boss
Veteran
Joined
May 12, 2014
Messages
105
Reaction score
49
First Language
english
Primarily Uses
well, stopping it from breaking is easy I would think.

<Custom Apply Effect>if (target.isActor()) { var ring = $dataArmors[1541]; if (target.hasArmor(ring)) { target.startAnimation(42); var hp = Math.floor(target.mhp * 0.25); target.gainHp(hp); target.startDamagePopup(); }}</Custom Apply Effect>However, that wont stop it from activating more than once per turn.  That I'm not entirely sure of, but I'm sure it would involve something like...

target.removeEquip(ring);inserting that above target.startAnimation and it should just unequip the ring.  should anyways.  

anyways, as for why its not working,  I would assume you have the note tag in the wrong place.  Did you put the notetag evaluation in the rings notetag box?  because I'm pretty sure it goes in that notetag box.  Other than that, I dunno.
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
well, stopping it from breaking is easy I would think.

<Custom Apply Effect>if (target.isActor()) { var ring = $dataArmors[1541]; if (target.hasArmor(ring)) { target.startAnimation(42); var hp = Math.floor(target.mhp * 0.25); target.gainHp(hp); target.startDamagePopup(); }}</Custom Apply Effect>However, that wont stop it from activating more than once per turn.  That I'm not entirely sure of, but I'm sure it would involve something like...

target.removeEquip(ring);inserting that above target.startAnimation and it should just unequip the ring.  should anyways.  

anyways, as for why its not working,  I would assume you have the note tag in the wrong place.  Did you put the notetag evaluation in the rings notetag box?  because I'm pretty sure it goes in that notetag box.  Other than that, I dunno.
well what i saw in the video you put the tag code in the fallen state and set what the rings id is in the tag of the state but ill give this a try thanks for your feedback :)
 

sirkos

Veteran
Veteran
Joined
Jan 4, 2016
Messages
67
Reaction score
1
Primarily Uses
well what i saw in the video you put the tag code in the fallen state and set what the rings id is in the tag of the state but ill give this a try thanks for your feedback :)
it goes on state and not on skill right? because it doesnt work either way and causes an error
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top