Status
Not open for further replies.

CrowStorm

Storm crow descending, Winter unending.
Veteran
Joined
Sep 7, 2018
Messages
314
Reaction score
288
First Language
English
Primarily Uses
RMMV
Yanfly's YEP_X_SkillCostItems is great for simulating ammunition, esp. in conjunction with the default WeaponSkill plugin, much as YF's SkillCostManager and WeaponAttackReplace did for Ace. I've been combining these scripts/plugins to simulate guns needing ammo to fire for years now, the Ace Scripts in my Lovecraftian horror game Chapelwaite and the MV Plugins in the very gun-centric Live Free Or Die and my current unannounced project.

What these scripts do not do, however, is let you define or display how many rounds a weapon holds in its clip or allow for/require reloading when a clip is empty. As a dirt simple example, a .357 magnum revolver holds 6 rounds whereas a 9mm automatic holds 15 rounds. For 90% of games this reloading function isn't one you really need but LFOD is all about guns and shooting them, so being able to add a 'clip size' "stat" to firearms would hugely help in differentiating guns so that guns of the same/similar type and caliber don't feel the same. It would also make the rhythm and flow of battle feel more like I want them to. Wayyyyyy back in the day in 2k3 I somehow evented a passable reloading system in a super-heavily modified DBS. While in theory I could do something like that, in this age of Plugins it would be unforgivably cludgy and awkward, and thinking about the like, 32 boilerplate pages of event code that were pasted into every battle troop to accomplish all of the things I was doing with that DBS gives me like...'Nam flashbacks, lol.

Is anyone aware of a "reloading" script that plays nice with Yanfly Engine Plugins and if not, is anyone willing to have a go at making one? I'd like any plugin produced from this request to be available to everyone, since it's not like it's a paid request and I think this could open up some new design space for MV games in general. Thanks!
 

CrowStorm

Storm crow descending, Winter unending.
Veteran
Joined
Sep 7, 2018
Messages
314
Reaction score
288
First Language
English
Primarily Uses
RMMV
new year, new month, new decade, gentle bump
 

miragewolf

Villager
Member
Joined
Jul 23, 2019
Messages
28
Reaction score
2
First Language
Traditional Chi
Primarily Uses
RMMV
Hi, you can do this with Yanfly plugins.
Think the ammo as skill uses, then it would be easy.

Needed: yanfly core, itemcore, skillcore, skillcost items, limitedskill uses

Give the pistol two skills (reload pistol, pistol shot)
Set the pistol shot plugin command to

<Limit Uses: 6>

Then set reload like this.
bog.png

Turn off any skill uses recover from default limitedskill.

After, your pistol will have how many “ammos” (actually how many uses pistol shots still has)
The ammos (skill uses) left is shown, and does not replenish when you remove then requip the used gun.

To make the system feel different, you can make another weapon like revolver and uses only +1 when reloading the revolver, a double barrel shotguns that uses two ammo but reload only get 1 shot, machinegun that uses bigger catridge but may hit multiple times, etc.

Technically you can make special bullets (like silver bullets) with another attack skill formula, just that the pistol may have way more bullets loaded than it's supposed to be.

It's not compatibile with the default rest I think, would replenish all the gun shots (skill uses).

You cannot also emulate hitman movie type of actions where you exchange pistols that are loaded with bullets, unless you choose to equip a pistol of another weapon id.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,300
Reaction score
1,241
First Language
English
Primarily Uses
RMMV
It's not compatibile with the default rest I think, would replenish all the gun shots (skill uses).
If you give it the <Not Recover All Uses> tag, it shouldn't.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,050
Reaction score
5,920
First Language
Dutch
Primarily Uses
RMXP

Miragewolf, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

I found an absolutely brilliant lifehack on the internet today.

Screenshot_760.jpg
It does sometimes get a little embarrassing that I often come here to ask for help with something and seldom have anything to actually show for it. If there is one thing though I can commend myself for, it's for sticking with an idea I've been tinkering with for this long now and gradually making headways. Even though I've been reserved about my progress, I can say I'm farther now than where I initially started.
I'm gonna put my project on pause for a tiny bit so I can explore the engine outside of it... Winging it can only get you so far LMFAO
Have seen some of my favorite people here posting and helping others with questions today -- love to see it!

Forum statistics

Threads
116,136
Messages
1,096,069
Members
151,555
Latest member
Fotdur
Top