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.
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).
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.