Excluding Weapons from Use With Genji Glove - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Excluding Weapons from Use With Genji Glove (/thread-3734.html) |
RE: Excluding Weapons from Use With Genji Glove - Lightning - 08-12-2018 I also saw a need for this to change in my mod. My solution was to make the Illumina/Ragnorok for Mage Knights only (ie, Terra and Celes). I also only allow Genji Gloves and Offering to be used by "Male Warriors" only. I also applied the offering hack that stops MP criticals and special moves like Wind Slash from working with offering. This pretty much disables all those super-mega attacks that make the game too easy. In short: -General Leo, Cyan, and Sabin can use the offering and Genji glove, but they can't do those ridiculous MP criticals with Illumina/Ragnorok with pearl/flare, nor can they continuously pound enemies with the Tempest and Wind Slash thanks to the "basic offering" hack. -Celes and Terra can do MP critical with Illumina/Ragornok, but can only use this with the Gauntlet. They can't use Genji Glove or offering. -Other characters like Setzer, Locke, and Gogo I do not count as "warriors", so they can't use this equipment at all, naturally. They can, however, equip a merit award and use a select few items (but this prevents them from combining the offering with the genji glove). I am curious how you proceed with this potential hack. I may include it in my mod later, or just use it if I ever merge my mod with yours! RE: Excluding Weapons from Use With Genji Glove - PowerPanda - 08-12-2018 (08-12-2018, 05:23 PM)assassin Wrote: yeah, that finite nature and hypothetical coexistence concerns kept me away from the method initially. but after nearly a decade with most of the bits going unclaimed, i concluded my worries were mostly academic, and that it was time to adapt. Exactly. There are 4 unclaimed bits, and only 3 improvements that would potentially claim those bits anyway (Brushless Sketch, Jump Megafix, Ignore Defense). It's time to stop holding these in reserve! If someone doesn't want to use them, they just don't have to apply the patch. As for the equipment special bits, there are only 4 that I have seen claimed. 1. HatZen's full roster hack moves the Merit Award and Active While Imp bits to the 2 unused bits on Special 4. 2. Unhardcoded Tintinnabar uses another. I forget which one. 3. Drakkhen's "Ignore Defense B" patch claims another (currently, the same bit as Merit Award, but I'm retrofitting that) (08-12-2018, 05:23 PM)assassin Wrote: as for the initial Genji Glove question, i suspect that menu enforcement will be more of a pain than battle mechanics. for the latter, i lean toward recommending expanding C2/0F6F to check both weapon hands, and if one lacks the compatibility, branch to C2/0F61 or 0F68 to zero its Battle Power. (if both lack it, then zero one at random or arbitrarily.) I'm thinking the same thing. I don't have to worry about battle mechanics, because Genji Glove's functionality is already programmed into the game. I just have to worry about excluding weapons from the list of equippable items. I've done some initial research, but I've had a lot going on this weekend, so I haven't yet figured out exactly what needs to be done. RE: Excluding Weapons from Use With Genji Glove - assassin - 08-13-2018 the admittedly lazy way of sidestepping the addition of menu restrictions would be saying: "go ahead and equip that incompatible weapon; you just won't be able to attack with it, as it dangles at your side." now, some warning would be needed. the simplest is adding a "Dual Wield" property in the menus, which would not be displayed for the incompatible items. and maybe the somewhat more involved step of ceasing adding the two hands' Battle Powers for the number displayed on the menu. (however, complexity arises in that Genji Glove sans two compatible weapons probably should no longer preempt the Gauntlet property.) for comparison, vanilla lets players equip Gauntlet-incompatible weapons with that Relic; they'll just piss away the slot if they're dumb enough to do so. thus, following suit for the new GG property isn't necessarily incomplete. RE: Excluding Weapons from Use With Genji Glove - dn - 08-13-2018 i would honestly trash the genji glove. with bug fixing taken into account, it is objectively worse than the gauntlet. i don't like *either* using a relic slot though, honestly. far better options and it just punishes variance in equipment options. RE: Excluding Weapons from Use With Genji Glove - PowerPanda - 08-13-2018 (08-13-2018, 12:13 PM)dn Wrote: i would honestly trash the genji glove. with bug fixing taken into account, it is objectively worse than the gauntlet. i don't like *either* using a relic slot though, honestly. far better options and it just punishes variance in equipment options. No. You are welcome to do this in your hack (it's as simple as removing a checkbox in FF3usME), but I will be using it. RE: Excluding Weapons from Use With Genji Glove - Warrax - 08-13-2018 (08-13-2018, 12:13 PM)dn Wrote: i would honestly trash the genji glove. with bug fixing taken into account, it is objectively worse than the gauntlet. i don't like *either* using a relic slot though, honestly. far better options and it just punishes variance in equipment options. This is about the mechanic behind the Genji Glove effect, not Gengi Glove the relic and it's relations to other relics in FF3 vanilla. Most of us have their own hack with their own design decisions, for example Shadow in my hack always dual wield and doesn't need Genji Glove the relic to do so. The discussion should be about the technicalities behind the dual wield mechanic, not if the mechanic is good or not. RE: Excluding Weapons from Use With Genji Glove - PowerPanda - 08-22-2018 I'm starting on the equip screen with this, and worrying about Battle Equipment Changes and Optimize later. I have the code partially working, but I need some advice. Right now, it's correctly checking if the EQUIPPED weapon is compatible with Dual Wielding. However, it's not checking the list of items for compatibility. Let me illustrate with an example. Example: Weapon 1: Dirk - Compatible Weapon 2: Imp Halberd - NOT Compatible (Character has Genji Glove Equipped) Scenario 1: Both hands empty, or one with a shield Result: All weapons available. CORRECT Scenario 2: One hand holds Imp Halberd Result: Cannot equip another weapon. CORRECT Scenario 3: One hand holds Dirk Result: All weapons available. INCORRECT. This needs to only make weapons compatible with Dual Wielding available. Any ideas on how to check the list of equippable weapons for their properties? Here is the code I have so far. I have plenty of free space thanks to Novalia's optimization. (http://www.romhacking.net/documents/736/) Code: ;Determine if gear list entry is disabled RE: Excluding Weapons from Use With Genji Glove - PowerPanda - 08-24-2018 Bump? To be clear, I've identified the code that needs to be changed, optimized it, and done a check on the equipped item to make sure it can support a second weapon. I've mostly created the logic for the second piece, which examines the item in the list to see if it can ALSO support a second weapon, but I don't know how to evaluate the LIST item's properties rather than the equipped items. RE: Excluding Weapons from Use With Genji Glove - madsiur - 08-24-2018 (08-24-2018, 04:02 PM)PowerPanda Wrote: I've mostly created the logic for the second piece, which examines the item in the list to see if it can ALSO support a second weapon, but I don't know how to evaluate the LIST item's properties rather than the equipped items. I don't know if I understand this correctly, but if your item is in the list (you need to loop the list) multiply item ID by $1E (size of item data), store in X and load your property byte with a LDA $D850??,X (see item properties). RE: Excluding Weapons from Use With Genji Glove - PowerPanda - 08-24-2018 Thank you for replying, Madsiur, but after 2 days of messing around with it, I GOT IT! The trick was that the list item was no longer in the Y accumulator at the point where I was trying to do my check. I needed to store the value earlier on in the code, then check against it later. So, I scrolled up in the code to where it stores the item class for the list item to $F6, then added another 8-byte chunk that stored the value for the "Dual Wield" flag to $F7. Once I had that value safely stored away, I was able to change the accumulator to the equipped item, do all the normal checks, and then check the dual wield flag of the equipped item against $F7. I have tried this with every combination I can think of, and it seems to be working as intended. I have also tested this with the Gauntlet, and both effects work in tandem with one another. Now, to dig into the Optimize routine and the C2 re-equip. Semi-final code is as follows. Note that due to Novalia Spirit's optimization, I was able to make all of these additions and still save 13 bytes. Code: ;Determine if gear list entry is disabled |