I'm trying to make a weapon, throwing knives, for a game on RM2k3. Is there a way to make them "run out"? I mean, seriously, it'd be stupid to have infinite throwing knives.
It might be possible... if you have Throwing Knife as an item AND a weapon, and then a common event checking how many you have and taking one away each time a battle skill is used. But I don't know how to do that. BC might, so:
*SUMMONS BLUECUBE*
EDIT: I was thinking of it being used as an item, but in RM2K3 you can't have something as an item that also hurts - unless it is a weapon.
I'll go into more detail later if needed, but since it's 1 AM I'll just do a bit of pseudocode
Basically you do an event in every monster group (make sure to copy it) that checks to see if you do an attack command, then:
<> Set variable [0001:EqWeapon] equal to hero's equipped weapon
<> Branch if [0001:EqWeapon] is equal to (weapon number)
...<> Set variable [0002:Knives] equal to number of knives in inventory
...<> Branch if [0002:Knives] is greater than zero
......<> Item Management: Remove one throwing knife
......<>
...:Else
......<> Set hero's weapon to nothing
......<>
..:End
:End
<>
(At this point the attack should continue normally)
Of course I suspect that this will not allow you to throw your last equipped knife. You may need to add another switch that is turned on at zero (instead of removing the knife right away), and another page to the event that checks for the hero's fight command AND the presence of the switch. That second page would remove the throwing knife weapon and turn off the switch, forcing the character to use his bare hands.
-Have a weapon called a Knife
and
-Have an item called a Knife
You can attack with the knife...or use your Throw (or some uncommon name ;p) skill to throw one of your Knife items at the enemy...and when you run out, you'll still have your last knife to attack with.
That's what I was thinking (and what BC tossed together), and it should work. The only hard bit would be getting them all to link together - the actual using of the battle skill and the taking away of an item. As far as I know there's no "If Skill is used" thing in the conditional branch.
But BC has found a way round it, methinks. So all should be good.
Oh, BC knows everything about the RPGMaker series. He denies it, but we're sure he made them.
And there you go llama. Told you he'd be able to help.
hehehehe.I think someone should put a consperacy theory thread about
'ol Blue Cube actually being the inventor,owner,(and all that other important stuff) of the rpg makers.That would be hillarious.
If Blue Cube had made it, then it would have been made in english, some of the more subtle details would have been better thought outhttp://www.zelaron.com/forum/showthread.php?t=38933, and RMXP would have been more like RM2K3 with C++ (or anything for that matter) instead of ruby.