The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Rello on December 31, 2013, 03:35:01 AM

Title: [Ace] Kread-EX's Actor Inventory and Item Charges allowing negatives
Post by: Rello on December 31, 2013, 03:35:01 AM
Hey all,

I've recently been playing around with a lot of YEA and Kread-Ex scripts and am currently working on a system that I like. Basically, players can equip items to actors (via the Accessory slot) to use them in battle. Items also have Charges (allowing them to be used multiple times). However, an odd thing happens: when I use an item, the item is able to have 0, and even negative, charges and still be equipped/usable. This king of goes against how the system should work and is a bit of a problem...

Example:
[spoiler]
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimageshack.com%2Fscaled%2Fmedium%2F836%2F0xxn.png&hash=6324c4e108264572ee80a3461fa5afdb9cc05643)
[/spoiler]

I'll attach a copy of my project so that it can be seen in action/all scripts can be seen. There's some instructions though:

Talk to the shadow to get the items.
Equip the Heal Vial to the actor.
Talk to the old man to start battle
Use equipped Health Vial x times.

Project:
http://www.mediafire.com/download/av9l8am4s5jxdvf/Project%20SIN2.rar

Any help is appreciated. Thanks.