Help with Evented Ammo system

Helloo,

I'm trying to make a simple evented ammo system, for testing purposes i am making a Pistol and its Ammo.

Ive got a little stuck with this, in my head it should work... but i could be completely wrong haha...

So i have an item type called "Pistol Ammo"

This is just so i can buy ammo at a shop and use the data of having the item in my inventory to make a "Shoot" skill available.

Spoiler
[IMG]http://4.bp.blogspot.com/-ZOVXxxjADOI/UdlDymyoN4I/AAAAAAAACZs/23D6AozQIaM/s1600/item.jpg[/IMG]
I have 3 common events for this 1 skill (shoot) and 1 item (pistol ammo) 1 state (No Ammo)

Common events

1- Ammo check

This is activated when i speak to the shop owner to buy ammo. It will then constantly check is the pistol ammo is in the inventory and then if the hand gun is equipped it will remove a "No Ammo" state. I have set the state to seal the "shoot" skill when its applied.

If the player has no ammo, then it should should apply "No Ammo" state, and disable the "Shoot" Skill.

Spoiler
[IMG]http://1.bp.blogspot.com/-YWo6_ej5TSM/UdlIwC2FZ4I/AAAAAAAACag/tUMTtC6Mi9c/s1600/Ammo+shop.jpg[/IMG]
Spoiler
[IMG]http://3.bp.blogspot.com/-0c6SOG3eKIo/UdlIvtHnXpI/AAAAAAAACaY/MIaTfidwDvk/s1600/Ammo+check.jpg[/IMG]
Spoiler
[IMG]http://1.bp.blogspot.com/-qQdKqXMuuOU/UdlICQPCvBI/AAAAAAAACaQ/NPqjbbozcH4/s1600/seal+shoot.jpg[/IMG]
2-Pistol used

This common event is activated when the "Shoot" skill is used in battle. This will then turn a switch on.

Spoiler
[IMG]http://2.bp.blogspot.com/-gZ-kvefQOEo/UdlH_wJ8SnI/AAAAAAAACaI/EwPxYefq2xo/s1600/Shoot+skill.jpg[/IMG]
Spoiler
[IMG]http://3.bp.blogspot.com/-R7OOaCk1kcM/UdlH9hc8tTI/AAAAAAAACaA/i5BIxBYfiU8/s1600/Shoot+common+event.jpg[/IMG]
3-Ammo shot

The last common event should activate once the "Shoot" skill is used which turns on the "pistol used!" switch. This then takes away 1 Pistol ammo from the players inventory and turns the "Pistol used" switch back off, ready to be activated again when the "Shoot" skill it used.

Spoiler
[IMG]http://4.bp.blogspot.com/-NKVr99vAb5Q/UdlH7gqB16I/AAAAAAAACZ4/8YV_ShcGc04/s1600/Ammot+shot+event.jpg[/IMG]
Hope this is clear enough.

Any advice or help in the right direction would be appreciated 🙂

Edit: Forgot to actually say what bit isn't working.. the skill seal part works at first, but then after getting ammo the gun just works and just take any ammo, almost like the other two common events aren't being activated..
How about a script?
Hmm id use a script if i new how to notetag properly! i attempted to use the Yanfly cost manager..but i couldn't get it to work :/ and it seems doable with events.. so i thought why not!

i guess i can keep trying with the script until i can figure it out, but it feels like im close to getting the evented ammo system to work (could be wrong haha)
Post support for evented systems here, thank you.


Closed.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-evented-ammo-system.15071/