Help - Search - Members - Calendar
Full Version: skills calling common events
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
darkace77450
Hello everyone. I am wanting to make certain skills consume items to activate. Being completely inept at scripting I am forced to approach this from the common event side of things. The first part of this is to check to see if the item is in inventory using call common event and conditional branches and then remove it. That part is easy enough.

The part I am having trouble with is the targeting. I am assuming I will have to have the common event execute a forced action (battle event) providing the required item is in the player's inventory. But for the life of me I cannot make heads or tails of the force action option, particularly targeting. Ideally I would like the player to select his skill and the common event allow him to select a target for the skill. Does anyone know how or even if this is possible using a common event? Thanks.
BasharTeg6
QUOTE (darkace77450 @ Apr 18 2010, 01:53 AM) *
Hello everyone. I am wanting to make certain skills consume items to activate. Being completely inept at scripting I am forced to approach this from the common event side of things. The first part of this is to check to see if the item is in inventory using call common event and conditional branches and then remove it. That part is easy enough.

The part I am having trouble with is the targeting. I am assuming I will have to have the common event execute a forced action (battle event) providing the required item is in the player's inventory. But for the life of me I cannot make heads or tails of the force action option, particularly targeting. Ideally I would like the player to select his skill and the common event allow him to select a target for the skill. Does anyone know how or even if this is possible using a common event? Thanks.


Yes, it's possible, but the process might be a bit complicated. I'm not sure where you are trying to call events from, but if you call it from the skill using the database you shouldn't need to use Force Action (which really only works well on the Troops tab.) If you run out of the items, I suppose you can force the actor to unlearn a skill until he obtains more. There are also scripts already made that can help with what you are trying to do here. Check out Yanfly's script pack for starters - there should be a link in the scripts section of this forum.
leongon
There are scripts already for that. Search for "Requirements for Skills" http://www.rpgrevolution.com/forums/index.php?act=Search
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.