Yanfly's Skill Cost Manager and Selchar's Item Charges
BMM_Archive · July 15, 2026
Original Source
- Original title: Yanfly's Skill Cost Manager and Selchar's Item Charges
- Original author: Mawichan
- Original date: February 26, 2018
- Source thread: https://forums.rpgmakerweb.com/threads/yanflys-skill-cost-manager-and-selchars-item-charges.91930/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support
Summary
Hello there! I have a question about custom skill costs for Yanfly's Skill Cost Manager ... (github link). I'd like to create a skill for bow/crossbow-type weapons that costs arrows/bolts. I know how to make a skill use items as "fuel", however, I'm using Selchar's Item Charges... (google drive link). This means I have Tsukihime's Instance Items as required by the former. With Instance Items, every single arrow appears as a separate element in the inventory, instead of stacking together, so I'm worried it will make the inventory be messy...
Archived First Post
I'd like to create a skill for bow/crossbow-type weapons that costs arrows/bolts.
I know how to make a skill use items as "fuel", however, I'm using Selchar's Item Charges... (google drive link). This means I have Tsukihime's Instance Items as required by the former. With Instance Items, every single arrow appears as a separate element in the inventory, instead of stacking together, so I'm worried it will make the inventory be messy and cluttered, considering how many arrows the player may need to carry around.
I figured that it would be more convenient to have the player carry a quiver as a single item, and the arrows it carries would be represented by charges. Then the bow skills would have to cost one charge of the item, and not the instance of the item itself.
Now the question is, how do I set that up?
For example this is how to set the skill to cost an item via skill notetags
<custom cost requirement>
$game_party.item_number($data_items[1]) >= 1
</custom cost requirement>
<custom cost perform>
$game_party.lose_item($data_items[1], 1)
</custom cost perform>
But how do I make the skill cost one charge of an item? What do I write instead of "$game_party.item_number($data_items[1]) >= 1" and "$game_party.lose_item($data_items[1], 1)"?
Well, that's all I want to know, thank you for your time.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...