suggestions for an ammo system?

I'm trying to create an ammo system for one of the characters in my game, and i figured i could use SRD battle status plugin to track the ammo vars, but the issues i'm having is in making the ammo a common event. so far i've been using YANFLY skill cost items to make the character use ammo for his skills, and i could just make a reload event that adds loaded ammo as a hidden item, but the problem here is that i also want to have special ammo, and itd be very odd if the special ammo costs both loaded ammo and the special ammo

so im not sure how i can handle the special ammo in that case, because i do want ammo management to be a factor. any suggestions of how else i could make this work?
well. one approach would be having ammo be equip'ed. the dude would fire from inventory only ammo equip'ed in his gun. there are plugins to change equips mid fight, hed have to change ammo type; maybe it would cost a turn.

another approach - its a little hard to just imagine what you have so far - would be the plugin that changes the attack command to another skill (weapon unleashed, i think... so youd have different skills named attack for that dude and each with different item costs.
well. one approach would be having ammo be equip'ed. the dude would fire from inventory only ammo equip'ed in his gun. there are plugins to change equips mid fight, hed have to change ammo type; maybe it would cost a turn.

another approach - its a little hard to just imagine what you have so far - would be the plugin that changes the attack command to another skill (weapon unleashed, i think... so youd have different skills named attack for that dude and each with different item costs.
there was unco's ammo system which apparently does the ammo equipping thing, but the issue is that what the ammos do is fairly limited to small modifiers. however weapon unleashed i haven't tried yet, so i'll look into that one
If it's just for the one dude, can't you use same mechanic for special ammo that you already explained? Like you have ammo item and special ammo item. Then you have hidden items for loaded ammo and loaded special ammo. Your load ammo skill subtracts ammo, gives loaded ammo and sets loaded special ammo to 0. Then your load special ammo skill subtracts special ammo, gives loaded special ammo and sets loaded ammo to 0. And put a Yanfly skill cost items for either loaded ammo or loaded special ammo for the skills. (Also might put requirements or whatever for the load skills.)

EDIT: I read your post again, and not 100% sure I understood what you were after. But anyway, you can also use the Custom Item cost notetags to use js to change the costs (so you could put that it might be 0 or 1 for ammo and 0 or 1 for special ammo, for example).
If it's just for the one dude, can't you use same mechanic for special ammo that you already explained? Like you have ammo item and special ammo item. Then you have hidden items for loaded ammo and loaded special ammo. Your load ammo skill subtracts ammo, gives loaded ammo and sets loaded special ammo to 0. Then your load special ammo skill subtracts special ammo, gives loaded special ammo and sets loaded ammo to 0. And put a Yanfly skill cost items for either loaded ammo or loaded special ammo for the skills. (Also might put requirements or whatever for the load skills.)

EDIT: I read your post again, and not 100% sure I understood what you were after. But anyway, you can also use the Custom Item cost notetags to use js to change the costs (so you could put that it might be 0 or 1 for ammo and 0 or 1 for special ammo, for example).
okay, so in essence i want to do guns like how look outside manages them, where a weapon has a certain ammount of ammo as part of a separate gauge, and the max and ammo type is defined by the weapon, but i dont have maker mz to try and take a look at that game internally. so the next best idea i had was to make a common event to handle the ammo, but now i'm trying to handle those as a battle event that's set at the start of every fight, like this.

1768414344109.png

the loaded shells -99 was because the battle tester kept giving 99 loaded shels in this case, since im using a shotgun i created to test it. but so far this hasnt worked yet.
since your using plugins, dont use the battle tester. run the game and test it there.

so you have variables 1 and 2, being one to reference how much ammo a gun can carry and how much its currently carrying.

create a reload skill that sets variable 2 to variable 1 or to how much ammo you have in inventory (whichever is larger) and costs variable 2 ammo from the inventory or how much ammo left you have (whichever is lesser). use the weapon unleashed plugin to make it replace the normal attack if variable 2 is zero.

create an attack skill that subtracts one from variable 2 and replaces normal attack if variable 2 is greater than 0.

yanfly has a plugin to handle events every time you start or end a battle, open and close menus and other timed situations. maybe you can use it to handle your variables.

Original thread: https://forums.rpgmakerweb.com/threads/suggestions-for-an-ammo-system.181941/