http://www.yanfly.moe/wiki/index.php?title=Holy_Prism_(MV_Plugin_Tips_%26_Tricks)&feed=atom&action=historyHoly Prism (MV Plugin Tips & Tricks) - Revision history2024-03-28T10:59:06ZRevision history for this page on the wikiMediaWiki 1.32.2http://www.yanfly.moe/wiki/index.php?title=Holy_Prism_(MV_Plugin_Tips_%26_Tricks)&diff=2806&oldid=prevYanfly: Created page with "{{Yanfly Tips & Tricks MV |preview = <youtube>https://www.youtube.com/watch?v=cCCnX3olJRI</youtube> |desc = Holy Prism is a spell from the World of WarCraft that has a diffe..."2019-07-08T18:13:22Z<p>Created page with "{{Yanfly Tips & Tricks MV |preview = <youtube>https://www.youtube.com/watch?v=cCCnX3olJRI</youtube> |desc = Holy Prism is a spell from the World of WarCraft that has a diffe..."</p>
<p><b>New page</b></p><div>{{Yanfly Tips & Tricks MV<br />
|preview = <youtube>https://www.youtube.com/watch?v=cCCnX3olJRI</youtube><br />
<br />
|desc = <br />
Holy Prism is a spell from the World of WarCraft that has a different effect depending on who your target is. If the target is a foe, the target takes concentrated damage and healing is reflected to the user’s allied party. If the target is an ally, the ally will receive concentrated healing while damage is reflected to the user’s enemy party! Here’s how you can recreate this effect in RPG Maker MV!<br />
<br />
|required = <br />
* [[Battle Engine Core (YEP)|Battle Engine Core]]<br />
* [[Damage Core (YEP)|Damage Core]]<br />
* [[Skill Core (YEP)|Skill Core]]<br />
* [[Selection Control (YEP)|Selection Control]]<br />
<br />
|instructions =<br />
Follow video instructions.<br />
<br />
You can grab the copy/paste code here: <br />
<br />
Place these notetags inside of your skill’s notebox. Change the values to fit the settings of your game.<br />
<br />
<pre><br />
// Allows the player to pick an enemy or an ally.<br />
<Enemy or Actor Select><br />
<br />
<Damage Formula><br />
// Check if the user and target are enemies.<br />
if (a.isActor() !== b.isActor()) {<br />
// If they are, this is the amount of damage dealt.<br />
value = a.mat * 4;<br />
// If they are allies...<br />
} else {<br />
// This is the amount of HP healed.<br />
value = a.mat * 6;<br />
}<br />
</Damage Formula><br />
<br />
<Pre-Damage Eval><br />
// If the user and the target are enemies...<br />
if (a.isActor() !== b.isActor()) {<br />
// Get half of the damage dealt.<br />
var hp = Math.floor(value / 2);<br />
// Get the alive members of the user's party.<br />
var members = user.friendsUnit().aliveMembers();<br />
// Loop through each member.<br />
for (var i = 0; i < members.length; ++i) {<br />
// Get the current member.<br />
var member = members[i];<br />
// If the member exists...<br />
if (member) {<br />
// ...then the member recovers HP.<br />
member.gainHp(hp);<br />
// Start the damage popup.<br />
member.startDamagePopup();<br />
// Clear the results.<br />
member.clearResult();<br />
// Start an animation.<br />
member.startAnimation(41);<br />
}<br />
}<br />
// If the user and the target are allies...<br />
} else {<br />
// Then get half of the value healed.<br />
var hp = Math.floor(value / 2);<br />
// Turn it into damage.<br />
value *= -1;<br />
// Get the user's opponent party's living members.<br />
var members = user.opponentsUnit().aliveMembers();<br />
// Loop through those members.<br />
for (var i = 0; i < members.length; ++i) {<br />
// Get the current member.<br />
var member = members[i];<br />
// If the member exists...<br />
if (member) {<br />
// Modify the damage received relative to the Holy element.<br />
var dmg = -hp * member.elementRate(13);<br />
// Make the member take damage.<br />
member.gainHp(dmg);<br />
// Start the damage popup.<br />
member.startDamagePopup();<br />
// Clear the results.<br />
member.clearResult();<br />
// Start an animation.<br />
member.startAnimation(97);<br />
// Check if the member is dead.<br />
if (member.isDead()) {<br />
// If it is, make it collapse.<br />
member.performCollapse();<br />
}<br />
}<br />
}<br />
}<br />
</Pre-Damage Eval><br />
</pre><br />
Happy reflecting!<br />
<br />
<br />
<br />
}}</div>Yanfly