MV Recreating the Cat Ear Hood from FF12?

For those who don't know what the item is: In the Zodiac versions of Final Fantasy 12, the Cat Ear Hood turns any LP gained into gil, and is good for passive earnings as it can be equipped on reserve party members.

LP is the equivalent of JP, so I was looking for a plugin (or some other method) that turned all JP gained from Yanfly's Job Points plugin into money. Only when this item is equipped, though. Would anybody have an idea of how to do this?

Thanks!
I was just thinking about this the other day actually. FF12's one of my faves.

I can assume, but just to confirm real quick: Does this mean you want the entire party to gain gold instead of JP when anyone has it equipped in general or...?
Same, 12's a great game. And yeah, I'd want it to convert the entire party's JP into gold.
Same, 12's a great game. And yeah, I'd want it to convert the entire party's JP into gold.

No problem! Here's the plugin you'll want. I would have done this way sooner but, alas, sleepy time.

Anyway, slap <Cat Ear Hood> onto any armor and it'll do what you requested by taking the total of the JP one actor would have gotten and adding it to the current total of whatever gold you were already going to gain in the first place. Everyone's JP gain will be reduced to zero as long as a single member is wearing it, alive or not.

If you would later decide that you want that to multiplicative of every alive/total party member(s), I can do that too via parameters.

NOTE: Since this is rather simple thing, I only tested this on a clean project with only the necessary plugins, so your mileage may vary... especially if you've made any drastic changes to how Gold/JP is displayed/gained at the end of battle by any means. For now, this works on any default battle system (or anything that doesn't do a whole different "makeRewards" method like Chrono Engine).

In the mean time, I'm going to make this a thing for myself and make it compatible with my project since I am using the Chrono Engine. I'm glad you got my off my lazy butt to actually go ahead and do something like this! Thank you for making the request!

Spoiler: SUN_CatEarHood
//============================================================================= // Yanfly Engine Plugin Extention // SUN_CatEarHood.js //============================================================================= var Imported = Imported || {}; Imported.SUN_CatEarHood = true; var SundialShark = SundialShark || {}; SundialShark.CEH = SundialShark.CEH || {}; SundialShark.CEH.version = 1.00; //============================================================================= /*: * @plugindesc v1.00 This plugin needs YEP_JobPoints in order to function. * Equip cute kitty ears to gain Gold instead of JP at end of battle! * @author Sundial Shark * * @help * ============================================================================ * Notetags * ============================================================================ * * <Cat Ear Hood> * The armor to have the Cat Ear Hood effect. */ //============================================================================= SundialShark.CEH.DataManager_isDatabaseLoaded = DataManager.isDatabaseLoaded; DataManager.isDatabaseLoaded = function() { if (!SundialShark.CEH.DataManager_isDatabaseLoaded.call(this)) return false; if (!SundialShark._loaded_SUN_CatEarHood) { this.processCEHNotetag($dataArmors); SundialShark._loaded_SUN_CatEarHood = true; } return true; }; DataManager.processCEHNotetag = function(group) { var note = /<(?:CAT EAR HOOD)>/i; for (var n = 1; n < group.length; n++) { var obj = group[n]; var notedata = obj.note.split(/[\r\n]+/); obj.jpConverter = false; for (var i = 0; i < notedata.length; i++) { var line = notedata[i]; if (line.match(note)) { obj.jpConverter = true; } } } }; SundialShark.CEH.BattleManager_makeRewards = BattleManager.makeRewards; BattleManager.makeRewards = function() { SundialShark.CEH.BattleManager_makeRewards.call(this); var catears = false; if (Yanfly.Param.JpAliveActors) { var members = $gameParty.aliveMembers(); } else { var members = $gameParty.members(); } members.forEach(function(actor) { var equipment = actor.equips(); equipment.forEach(function(x) { if (x != null && x.jpConverter == true ) { catears = true; }; }); }); if (catears == true) { this._rewards.gold = this._rewards.gold + $gameTroop.jpTotal(); }; }; BattleManager.gainJp = function() { var catears = false; var jp = $gameTroop.jpTotal(); $gameMessage.newPage(); if (Yanfly.Param.JpAliveActors) { var members = $gameParty.aliveMembers(); } else { var members = $gameParty.members(); } members.forEach(function(actor) { var equipment = actor.equips(); equipment.forEach(function(x) { if (x != null && x.jpConverter == true ) { catears = true; }; }); }); if (catears == false) { members.forEach(function(actor) { actor.gainJp(jp); }); }; };
No problem! Here's the plugin you'll want. I would have done this way sooner but, alas, sleepy time.

Anyway, slap <Cat Ear Hood> onto any armor and it'll do what you requested by taking the total of the JP one actor would have gotten and adding it to the current total of whatever gold you were already going to gain in the first place. Everyone's JP gain will be reduced to zero as long as a single member is wearing it, alive or not.

If you would later decide that you want that to multiplicative of every alive/total party member(s), I can do that too via parameters.

NOTE: Since this is rather simple thing, I only tested this on a clean project with only the necessary plugins, so your mileage may vary... especially if you've made any drastic changes to how Gold/JP is displayed/gained at the end of battle by any means. For now, this works on any default battle system (or anything that doesn't do a whole different "makeRewards" method like Chrono Engine).

In the mean time, I'm going to make this a thing for myself and make it compatible with my project since I am using the Chrono Engine. I'm glad you got my off my lazy butt to actually go ahead and do something like this! Thank you for making the request!

Spoiler: SUN_CatEarHood
//============================================================================= // Yanfly Engine Plugin Extention // SUN_CatEarHood.js //============================================================================= var Imported = Imported || {}; Imported.SUN_CatEarHood = true; var SundialShark = SundialShark || {}; SundialShark.CEH = SundialShark.CEH || {}; SundialShark.CEH.version = 1.00; //============================================================================= /*: * @plugindesc v1.00 This plugin needs YEP_JobPoints in order to function. * Equip cute kitty ears to gain Gold instead of JP at end of battle! * @author Sundial Shark * * @help * ============================================================================ * Notetags * ============================================================================ * * <Cat Ear Hood> * The armor to have the Cat Ear Hood effect. */ //============================================================================= SundialShark.CEH.DataManager_isDatabaseLoaded = DataManager.isDatabaseLoaded; DataManager.isDatabaseLoaded = function() { if (!SundialShark.CEH.DataManager_isDatabaseLoaded.call(this)) return false; if (!SundialShark._loaded_SUN_CatEarHood) { this.processCEHNotetag($dataArmors); SundialShark._loaded_SUN_CatEarHood = true; } return true; }; DataManager.processCEHNotetag = function(group) { var note = /<(?:CAT EAR HOOD)>/i; for (var n = 1; n < group.length; n++) { var obj = group[n]; var notedata = obj.note.split(/[\r\n]+/); obj.jpConverter = false; for (var i = 0; i < notedata.length; i++) { var line = notedata[i]; if (line.match(note)) { obj.jpConverter = true; } } } }; SundialShark.CEH.BattleManager_makeRewards = BattleManager.makeRewards; BattleManager.makeRewards = function() { SundialShark.CEH.BattleManager_makeRewards.call(this); var catears = false; if (Yanfly.Param.JpAliveActors) { var members = $gameParty.aliveMembers(); } else { var members = $gameParty.members(); } members.forEach(function(actor) { var equipment = actor.equips(); equipment.forEach(function(x) { if (x != null && x.jpConverter == true ) { catears = true; }; }); }); if (catears == true) { this._rewards.gold = this._rewards.gold + $gameTroop.jpTotal(); }; }; BattleManager.gainJp = function() { var catears = false; var jp = $gameTroop.jpTotal(); $gameMessage.newPage(); if (Yanfly.Param.JpAliveActors) { var members = $gameParty.aliveMembers(); } else { var members = $gameParty.members(); } members.forEach(function(actor) { var equipment = actor.equips(); equipment.forEach(function(x) { if (x != null && x.jpConverter == true ) { catears = true; }; }); }); if (catears == false) { members.forEach(function(actor) { actor.gainJp(jp); }); }; };
This is perfect! And no, thank you for making it!
It seems to me that the ratio jp to gold is hardcoded into the plugin as 1 jp equals 1 gold. Adding a parameter to change that ratio may greatly improve the plugins usefulness to the general community.
It seems to me that the ratio jp to gold is hardcoded into the plugin as 1 jp equals 1 gold. Adding a parameter to change that ratio may greatly improve the plugins usefulness to the general community.


You're totally right!

Here you are! Now includes a single parameter that'll multiply the amount of gold per JP received.

Spoiler: SUN_CatEarHood 1.10
//============================================================================= // Yanfly Engine Plugin Extention // SUN_CatEarHood.js //============================================================================= var Imported = Imported || {}; Imported.SUN_CatEarHood = true; var SundialShark = SundialShark || {}; SundialShark.CEH = SundialShark.CEH || {}; SundialShark.CEH.version = 1.10; SundialShark.Parameters = PluginManager.parameters('SUN_CatEarHood'); SundialShark.Parameters.JpRatio = Number(SundialShark.Parameters['JP Conversion Ratio']); //============================================================================= /*: * @plugindesc v1.00 This plugin needs YEP_JobPoints in order to function. * Equip cute kitty ears to gain Gold instead of JP at end of battle! * @author Sundial Shark * * @param JP Conversion Ratio * @desc Increase this to change how much gold is earned per JP. * @default 1 * * @help * ============================================================================ * Notetags * ============================================================================ * * <Cat Ear Hood> * The armor to have the Cat Ear Hood effect. */ //============================================================================= SundialShark.CEH.DataManager_isDatabaseLoaded = DataManager.isDatabaseLoaded; DataManager.isDatabaseLoaded = function() { if (!SundialShark.CEH.DataManager_isDatabaseLoaded.call(this)) return false; if (!SundialShark._loaded_SUN_CatEarHood) { this.processCEHNotetag($dataArmors); SundialShark._loaded_SUN_CatEarHood = true; } return true; }; DataManager.processCEHNotetag = function(group) { var note = /<(?:CAT EAR HOOD)>/i; for (var n = 1; n < group.length; n++) { var obj = group[n]; var notedata = obj.note.split(/[\r\n]+/); obj.jpConverter = false; for (var i = 0; i < notedata.length; i++) { var line = notedata[i]; if (line.match(note)) { obj.jpConverter = true; } } } }; SundialShark.CEH.BattleManager_makeRewards = BattleManager.makeRewards; BattleManager.makeRewards = function() { SundialShark.CEH.BattleManager_makeRewards.call(this); var catears = false; if (Yanfly.Param.JpAliveActors) { var members = $gameParty.aliveMembers(); } else { var members = $gameParty.members(); } members.forEach(function(actor) { var equipment = actor.equips(); equipment.forEach(function(x) { if (x != null && x.jpConverter == true ) { catears = true; }; }); }); if (catears == true) { var JpRatio = SundialShark.Parameters.JpRatio; this._rewards.gold = this._rewards.gold + ($gameTroop.jpTotal() * JpRatio); }; }; BattleManager.gainJp = function() { var catears = false; var jp = $gameTroop.jpTotal(); $gameMessage.newPage(); if (Yanfly.Param.JpAliveActors) { var members = $gameParty.aliveMembers(); } else { var members = $gameParty.members(); } members.forEach(function(actor) { var equipment = actor.equips(); equipment.forEach(function(x) { if (x != null && x.jpConverter == true ) { catears = true; }; }); }); if (catears == false) { members.forEach(function(actor) { actor.gainJp(jp); }); }; };

Original thread: https://forums.rpgmakerweb.com/threads/recreating-the-cat-ear-hood-from-ff12.151421/