Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
Posted 2006-06-06, 11:25 PM in reply to llamallover2021's post "RM2k3 weapon help"
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.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:40 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.