REPAIR KIT VS HUMEN HEALING ITEMS
Posts
Pages:
1
I need to know how to make it so that Gundams and humans use different healing items like a Repair Kit for Gundams and a First Aid Kit for humans. not sure if anyone covered this. and I'm using R p g Maker VX.
Would it work if you created two Elements? Humans being impervious to the "Repair Kit" element and Gundams being impervious to the "First Aid Kit" element.
This would be so much easier in 2k/3. You see, there, you could check the box for which characters your items work on and which they don't. There is, unfortunately, no easy way to do this. It can be done with advanced scripting, but I don't have that skill, and I suspect, neither do you. The problem is that VX Ace's engine doesn't have a concept of an individual actor using an item. It only understands an item being used and targeting an actor. I was looking at Yanfly's Targeting Manager scripts, but they don't consider items. You could probably figure something out with Lunatic Targets, but again, advanced scripting necessary.
You can do a work around, though:
Have the item call a common event and handle everything in there.
Have a conditional branch determine whether you are healing a person or a robot. If your item is trying to heal the wrong type of character, do nothing, and add one of the item back into the inventory. The reason you have to add an item back is because no matter what you do, the system is going to consider the item used, so, you have to add it back into inventory.
Healing in common events is pretty easy and straightforward.
You just want to make sure that you don't use any event commands that aren't available in the Battle Event window of the Troops tab. As long as you keep it simple, it shouldn't be a problem, but VX Ace can get bitchy over using the wrong commands in common events for battle.
You can do a work around, though:
Have the item call a common event and handle everything in there.
Have a conditional branch determine whether you are healing a person or a robot. If your item is trying to heal the wrong type of character, do nothing, and add one of the item back into the inventory. The reason you have to add an item back is because no matter what you do, the system is going to consider the item used, so, you have to add it back into inventory.
Healing in common events is pretty easy and straightforward.
You just want to make sure that you don't use any event commands that aren't available in the Battle Event window of the Troops tab. As long as you keep it simple, it shouldn't be a problem, but VX Ace can get bitchy over using the wrong commands in common events for battle.
Pages:
1














