Bypassing Weapon Requirements?

In my game, different spells require different types of staves in order to be cast, however, I want to add a ring that would allow the ability to cast any spell without a stave at the cost of less damage.


How would I go about doing this?
By default, skills can have up to two weapon requirements, meaning that the spell would require Staff or Ring.  However, if you have, say, Ice Staff and Water Staff able to use Water spells, that's already two slots, so...


Try using Himework's Custom Use Conditions if you want a script.  From one of the examples on that page, you can have two different conditions, where one is a unique weapon.  The id of a weapon type is the number next to it. 


---


Having the Ring cast lower damage... a Game_Actor's wtype_equipped?(wtype_id) checks if any weapon belongs to a group.  Just remember to check if a.actor? first (if user a is an actor) since that method is only for actors, then you should be able to check a.wtype_equipped?(RING).
By default, skills can have up to two weapon requirements, meaning that the spell would require Staff or Ring.  However, if you have, say, Ice Staff and Water Staff able to use Water spells, that's already two slots, so...


Try using Himework's Custom Use Conditions if you want a script.  From one of the examples on that page, you can have two different conditions, where one is a unique weapon.  The id of a weapon type is the number next to it. 


---


Having the Ring cast lower damage... a Game_Actor's wtype_equipped?(wtype_id) checks if any weapon belongs to a group.  Just remember to check if a.actor? first (if user a is an actor) since that method is only for actors, then you should be able to check a.wtype_equipped?(RING).



Thank you. 🙂
Another option, scriptless one would be to make Two variations of each spell (one that needs a specific staff type, the other no req but lower damage), probably having different skill types. Then just make the ring add that skill type as a Feature.

Original thread: https://forums.rpgmakerweb.com/threads/bypassing-weapon-requirements.73848/