Hello, RPGM VXACE community,
I'm making a futuristic RPG with weapons, I tried implementing an ammo system but it didn't appear that the commonly found ammo script was working out for me so I settled with ammo being infinite (future and stuff) but I really want there to at least be a reload state
Is there a way to make a weapon apply a state not to the enemy but to the user itself so that I can make each weapon have a certain chance of applying "Reloading" state to the user making some of the more powerful weapons have drawbacks (because now there are no drawbacks in buying whole team rocket launchers except for money :( )
Any kind of information would help a lot :D
Adding states to user [RPG ACE]
● ARCHIVED · READ-ONLY
-
-
Wow it's that hard to do? I figured it'd be simpler :D
-
Ammo is hard to do. But it can be done.
It requires some ingenuity, and yanfly's skill cost manager:
https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-cost-manager/
The direct links to the scripts from the description pages are busted, go to the main page for a link to the github repository that has them all, once you figure out what you need.
As for reload states - you'll need to create a variable to store how many times a given user has fired a given gun (this could get
tiresome), and then a common even when they use the weapon which checks to see if they need a reload. Then apply a state with the can't move restriction and put the flavor text for the state as something like "so and so is busy reloading...."
Either that - or you can just make ammo very very costly for such things as rocket launchers. I believe Yanfly ALSO has some sort of skill cool down option which you might be able to make use of - as in - rockets have a cooldown of 2 turns or some such. I will leave *that* as an exercise for the reader, though.
Yanfly, in general, is freaking awesome.