[Ohrrpgce] [ohrrpgce:bugs] #2032 Enemies take player items if using attacks that cost an item

TeeEmCee teeemcee at users.sourceforge.net
Wed Jul 18 00:12:51 PDT 2018


This bug is also discussed in bug #2018 (https://sourceforge.net/p/ohrrpgce/bugs/2018/) but it's good to have this filed as a separate bug.

As discussed in #2018, to retain back-compat, we aren't going to change the behaviour of item costs. It is actually documented to work this way on the help page (but only since Callipygous). It's useful for attacks by enemies to affect the player's inventory, even though this behaviour was definitely a bug! 
Instead, we should add a new setting which acts on the attacker's inventory instead of the player's inventory. Or add a bitset to say which the item cost affects.

Per-spell-slot limited uses per battle would be a pretty nice feature!


---

** [bugs:#2032] Enemies take player items if using attacks that cost an item**

**Status:** open
**Milestone:** OHRRPGCE
**Created:** Tue Jul 17, 2018 05:25 PM UTC by Santino Labbate
**Last Updated:** Tue Jul 17, 2018 05:25 PM UTC
**Owner:** nobody


If an attack has an item cost, when an *enemy* uses that attack, it subtracts that item from the *player* inventory. (Furthermore, the enemy is able to use the attack regardless of whether the item exists in the player inventory anyways.)

Since enemies don't have their own unique inventory, I suspect that the item cost is supposed to be ignored for them.


*Side note:*

As a feature, I think it would be neat to have the option of putting a "number of uses per battle" on individual hero attack slots. This would create a cleaner way of limiting the number of times an attack can be used if other methods (such as item restocking via after-combat script or FF1 style) don't quite do the job. In custome.exe, it would fit very nicely into the Hero Spell Lists window that pops up when you select an individual spell slot, right next to the "Learned at level: X", field. In battle, code similar to that used for FF1 style can regulate the attack in addition to whatever other costs it has.


---

Sent from sourceforge.net because ohrrpgce at lists.motherhamster.org is subscribed to https://sourceforge.net/p/ohrrpgce/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/ohrrpgce/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20180718/47fde889/attachment-0001.html>


More information about the Ohrrpgce mailing list