じ☆ve冰风 发表于 4 天前

How to creat an ABS with sword actually in hand without plugins.

HOW TO MAKE AN ACTION BATTLE SYSTEM WITH NO PLUIGINS

Okay had to take photos with my phone I’ll do screen shots later but in case any one needs this information here it is... a custom ABS (action battle system) before you begin create a switch called Sword On for later use

Step 1: turn on a Switch and name it Sword1. Important make sure that switch is turned on before anything ... On every map you want your Actor to be able to use his sword you need to create an running with the trigger set to Parallel with no conditions. Then under “Game Progression” create a variable and name it .. I use Attack ON. Set up as follows: Operation “Set” Constant at “16” .. this will insure you can always call the common event

Step 2: Create an Enemy Event set to run on Parallel with no conditions and set its graphic. On the first page create a variable again set up as EnemyHP1 SET constant to 10 (or desired HP amount.) then turn on Self Switch A.
Page 2set to player touch with the condition Self Switch A .
set up a conditional branch with Else enabled. Set it with “If The switch Sword On is ON then go to set movement route.Set to skip and wait

This Event
walking animation OFF
speed 6
Frequency 5
1 step backward
speed 4
frequency 3
walking animation ON

Control switch Sword ON = OFF
Control variable EnemyHP1 sub 5 (or any other amount you desire lol )

Below Else

Play desired animation if any to represent the player taking damage

Set movement route : Player set to Skip and Walking Animation OFF
Speed 6
Frequency 5
1 step backward
Speed 4
Frequency 3
Walking animation ON

Change HP for the player by -1 or ...you guessed it desired amount of damage
Check allow death

Between End and End lol

End

Conditional Branch :If EnemyHP1 = 0
Play sound effect
Add a reward I give gold
Control Self Switch B = ON
Set movement route : Player Walking Animation on ( prevents glitches )

End

Page 3 condition self switch B
Below Character
Action Button
(This is a dead enemy) if you want them to repsawn add another page if not you can stop at 3

Page 4 condition self switch B set to Parallel

wait 900 frames
Wait 900 frames
Play an animation to represent respawning
Self switch A = OFF
Self Switch B = OFF

note you can copy and paste this BUT for multiple enemies to work you MUST simply create a new Variable called for example EnemyHP2 do this for each time the the variable is used in the event and you can create as many enemies as you like by copy and paste and a slight edit

Now go to system and common Events

Create a common event Name it .. mines Holy Sword set the trigger to parallel with switch Sword1.

If you want a sword in your players hand you must open the character sheet in GIMP and copy the actor with its hand in each row and create a new sheet.. no walking animation just holding the hand out and draw sword or animate the arm and sword swing. Export it imgs characters. Anyhow....

Contents of common Event:

Conditional Branch: IF Shift is being pressed
Conditional Branch : if Attack ON = 16
      Control switches Sword On= ON
Change actor image (to the one with a sword )
Set movement route : Player Skip, Wait
    Speed 6
    Frequency 5
   1 Step Forward
    Speed 4
    Frequency 3

Change Actor Images : back to your character
Control Switches Sword On = OFF
Control Variables Attack On = 0

End

Set movement route :
Player no wait no skip
Speed 4
Frequency 3 ( also prevents any Glitching )

End

That’s it with those steps you can now make a Zelda styled combat game apply it any way you want I’ve already got Boss battles in mind. enjoy

can work for MV or MZ


本贴来自国际rpgmaker官方论坛作者:Roach87处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-creat-an-abs-with-sword-actually-in-hand-without-plugins.132278/
页: [1]
查看完整版本: How to creat an ABS with sword actually in hand without plugins.