Gw Temp

Menu

Tutorial - 'Definitive Duelling Part 2' by Angroth

An item about RPGMaker 2000 posted on

Blurb

The second part to the very large duelling system. This is also needed to make the whole thing work.

Body

Welcome back to the second part of my super long tut.
Once again if you need it, below is the chart of locations to strike and strike types and what damage they cause for more clarity. An asterisk means the damage is suffered by the attacker.
Location Player Defends Player Doesn’t Defend
WS SL T PS WS SL T PS
Head *1 1 0 1 3 2 2 1
Body *1 1 0 1 3 2 2 1
Arms 1 0 0 1 2 2 1 1
Legs 1 0 0 1 2 2 1 1

< > Message:Apply which form of defence?
< > Show Choice:Upper (Head & Arms)/Lower (Body & Legs)
:[Upper (Head & Arms)] Case
< > Change Switch: Var[0009:Hero Upper Block] Switch ON
< >
:[Lower (Body & Legs)] Case
< > Change Switch: Var[0010:Hero Lower Block] Switch ON
< >
:End Case
< > Change Var: Var[0003:Enemy Action] (Set)- Random(1 to 4)
< > Change Var: Var[0004:Enemy Action 2] (Set)- Random(1 to 4)
< > If Var[0003:Enemy Action] 1
< > Change Switch: Var(0001:Duel Attack – Head) Switch ON
< >
:End Case
< > If Var[0003:Enemy Action] 2
< > Change Switch: Var(0002:Duel Attack – Body) Switch ON
< >
:End Case
< > If Var[0003:Enemy Action] 3
< > Change Switch: Var(0003:Duel Attack – Arms) Switch ON
< >
:End Case
< > If Var[0003:Enemy Action] 4
< > Change Switch: Var(0004:Duel Attack – Legs) Switch ON
< >
:End Case
< > If Var[0004:Enemy Action 2] 1
< > Change Switch: Var(0005:Attack – Wild Swing) Switch ON
< >
:End Case
< > If Var[0004:Enemy Action 2] 2
< > Change Switch: Var(0006:Attack – Strong Lung) Switch ON
< >
:End Case
< > If Var[0004:Enemy Action 2] 3
< > Change Switch: Var(0007:Attack – Thrust) Switch ON
< >
:End Case
< > If Var[0004:Enemy Action 2] 4
< > Change Switch: Var(0008:Attack – Precision S) Switch ON
< >
:End Case
< > If Switch(0009:Hero Upper Block) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:4-(140, 90)0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:4-(140, 90), 0.5 sec (w) UNFLASH RED
< > Message:You have countered the enemy.
< > Change Var: Var[0002:Enemy Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:Enemies lunge has sliced you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Hero Attack-(140, 90)
< > Wait: 0.8sec
< > Show Picture: ID:4- Hero Stand-(140, 90)
< > Message:You parried the thrust.
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
< > If Switch(0003:Duel Attack - Arms) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Wait: 0.8sec
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Message:You have dodged the enemies lunge.
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Wait: 0.8sec
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Message:You parried the enemies thrust.
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
:End Case
< > If Switch(0002:Duel Attack - Body) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Kill2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has smashed you.
< > Change Var: Var Var[0001:Hero’s Duel HP] (-)- 3
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies lunge has cut you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies thrust has cut you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
:End Case
< > If Switch(0004:Duel Attack - Legs) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has smashed you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies lunge has cut you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies thrust has cut you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
:End Case
< >
:Else Case
< > If Switch(0010:Hero Lower Block) is ON
< > If Switch(0001:Duel Attack - Head) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Kill2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies attack was devastating..
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 3
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies lunge has sliced you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies thrust was successful.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
< > If Switch(0003:Duel Attack - Arms) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has hit you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword2
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies lunge has cut you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 2
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies thrust has sliced you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
:End Case
< > If Switch(0002:Duel Attack - Body) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:4-(140, 90)0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:4-(140, 90), 0.5 sec (w) UNFLASH RED
< > Message:You have countered the enemy.
< > Change Var: Var[0002:Enemy Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Strong Lung) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemies lunge has cut you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Wait: 0.8sec
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Message:You parried the enemies thrust.
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
:End Case
< > If Switch(0004:Duel Attack - Legs) is ON
< > If Switch(0005:Attack – Wild Swing) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has hit you.
< > Change Var: Var[0003:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< > If Switch(0006:Attack – Lunge) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Wait: 0.8sec
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Message:You dodged the enemies lunge.
< > Goto Label 2#
< >
:End Case
< > If Switch(0007:Attack – Thrust) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Wait: 0.8sec
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Message:You blocked the enemies thrust.
< > Goto Label 2#
< >
:End Case
< > If Switch(0008:Attack – Precision S) is ON
< > Show Picture: ID:4- Enemy Attack-(140, 90)
< > Play SE: Sword1
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) FLASH RED
< > Show Picture: ID:4- Enemy Stand-(140, 90)
< > Move Picture: ID:3-(210, 160), 0.5 sec (w) UNFLASH RED
< > Message:The enemy has accurately cut you.
< > Change Var: Var[0001:Hero’s Duel HP] (-)- 1
< > Goto Label 2#
< >
:End Case
< >
:End Case
< >
:End Case
< > Label 2#
< > Change Switch: Var[0001:Duel Attack - Head] Switch OFF
< > Change Switch: Var[0002:Duel Attack - Body] Switch OFF
< > Change Switch: Var[0003:Duel Attack - Arms] Switch OFF
< > Change Switch: Var[0004:Duel Attack - Legs] Switch OFF
< > Change Switch: Var[0005: Attack – Wild Swing] Switch OFF
< > Change Switch: Var[0006: Attack – Strong Lung] Switch OFF
< > Change Switch: Var[0007: Attack – Thrust] Switch OFF
< > Change Switch: Var[0008: Attack – Precision S] Switch OFF
< > If Var[0002:Enemy Duel HP] 12
< > Show Picture: ID: 1 – Tournament HP 12-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 11
< > Show Picture: ID: 1 – Tournament HP 11-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 10
< > Show Picture: ID: 1 – Tournament HP 10-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 9
< > Show Picture: ID: 1 – Tournament HP 9-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 8
< > Show Picture: ID: 1 – Tournament HP 8-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 7
< > Show Picture: ID: 1 – Tournament HP 7-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 6
< > Show Picture: ID: 1 – Tournament HP 6-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 5
< > Show Picture: ID: 1 – Tournament HP 5-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 4
< > Show Picture: ID: 1 – Tournament HP 4-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 3
< > Show Picture: ID: 1 – Tournament HP 3-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 2
< > Show Picture: ID: 1 – Tournament HP 2-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 1
< > Show Picture: ID: 1 – Tournament HP 1-(27, 120)
< >
:End Case
< > If Var[0002:Enemy Duel HP] 0(<=)
< > Show Picture: ID: 1 – Tournament HP 0-(27, 120)
THIS CONTAINS WHAT HAPPENS IF YOU WIN
< > Goto Label 5#
:End Case
< > If Var[0002:Hero’s Duel HP] 12
< > Show Picture: ID: 2 – Tournament HP 12-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 11
< > Show Picture: ID: 2 – Tournament HP 11-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 10
< > Show Picture: ID: 2 – Tournament HP 10-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 9
< > Show Picture: ID: 2 – Tournament HP 9-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 8
< > Show Picture: ID: 2 – Tournament HP 8-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 7
< > Show Picture: ID: 2 – Tournament HP 7-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 6
< > Show Picture: ID: 2 – Tournament HP 6-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 5
< > Show Picture: ID: 2 – Tournament HP 5-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 4
< > Show Picture: ID: 2 – Tournament HP 4-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 3
< > Show Picture: ID: 2 – Tournament HP 3-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 2
< > Show Picture: ID: 2 – Tournament HP 2-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 1
< > Show Picture: ID: 2 – Tournament HP 1-(295, 120)
< >
:End Case
< > If Var[0002:Hero’s Duel HP] 0(<=)
< > Show Picture: ID: 2 – Tournament HP 0-(295, 120)
THIS CONTAINS WHAT HAPPENS IF THE ENEMY WINS
< > Goto Label 5#
:End Case
< > Goto Label 3#
< > Label 5#

Well that just about wraps it up. All you have to do is produce the enemy attack and standing positions and the 12 health bar stages. Please give this tut a shot and if you don’t…. I’ll send evil Bart after you. Mwahahahaha…. Uhh..yeah!
Contact me if you need help on this!