Okay, I'm very new to RPG Maker. I'm more used to Doom95 modding, but while my main computer is down, I thought I'd try my hand at this. I apologize up front if this isn't the right place to post this.
I'm using RPG Maker XP. I'm trying to set something up where the use of a Skill, consumes an Item, BUT, without the Item, the Skill cannot be used.
I've looked at several ways of going about this. Blizzard's Script Collection, for example, but I don't want to add that much unneeded code to my project. Then, I happened upon someone's post somewhere about attaching a Common Event to a Skill.
forums.rpgmakerweb.com
I know this was written for a different version of RPG Maker, but the basics of it worked just fine. This presented a few problems:
1) Using it as suggested, with a "fake skill" being fired first that then triggers the "real skill," I end up with a character that makes a "fake attack" that does 0 damage, and that's very annoying. I don't know how to bypass this or have it skip the "fake attack" sequence.
2) Editing the Common Event to handle everything in the base Skill results in the Common Event firing AFTER the Skill is used. Meaning, the Skill gets used whether or not the Character(s) have the Item in question.
See, in ZScript, I could go about this by using IF/OR type statements. Here... I'm not sure what the hecc I'm doing. So, in short, I need:
1) A Script that forces a check for the specific Item ID and if there's any remaining, and if not, cancels the attempted use of the Skill
2) A way to make the Item Check Common Event fire BEFORE the Skill is actually executed.
3) A way to make the "Fake Attack" not actually do anything BUT fire the Common Event (i.e. not perform a fake attack on the target and pop a big 0 over it and make it flash).
Or, more simply, if someone developed a "Firearms and Ammo" type thing where the Firearms are actually Skills and not Weapons, that would work, too.
I greatly appreciate any help I can get.
I'm using RPG Maker XP. I'm trying to set something up where the use of a Skill, consumes an Item, BUT, without the Item, the Skill cannot be used.
I've looked at several ways of going about this. Blizzard's Script Collection, for example, but I don't want to add that much unneeded code to my project. Then, I happened upon someone's post somewhere about attaching a Common Event to a Skill.
Item Consuming Via Skill
Is it possible to set a skill so that it consumes an item on use? A good example of what I am talking about is in Final Fantasy, the ninjas can use the "Throw" skill at the cost of a shuriken. Thanks in advance, Oats
forums.rpgmakerweb.com
1) Using it as suggested, with a "fake skill" being fired first that then triggers the "real skill," I end up with a character that makes a "fake attack" that does 0 damage, and that's very annoying. I don't know how to bypass this or have it skip the "fake attack" sequence.
2) Editing the Common Event to handle everything in the base Skill results in the Common Event firing AFTER the Skill is used. Meaning, the Skill gets used whether or not the Character(s) have the Item in question.
See, in ZScript, I could go about this by using IF/OR type statements. Here... I'm not sure what the hecc I'm doing. So, in short, I need:
1) A Script that forces a check for the specific Item ID and if there's any remaining, and if not, cancels the attempted use of the Skill
2) A way to make the Item Check Common Event fire BEFORE the Skill is actually executed.
3) A way to make the "Fake Attack" not actually do anything BUT fire the Common Event (i.e. not perform a fake attack on the target and pop a big 0 over it and make it flash).
Or, more simply, if someone developed a "Firearms and Ammo" type thing where the Firearms are actually Skills and not Weapons, that would work, too.
I greatly appreciate any help I can get.