Post by WarDragon on Jan 6, 2005 15:27:55 GMT -5
RPGMAKER2
action rpg tutorial
by Steven harper aka Taizongames
email taizongames@yahoo.com
website www.freewebs.com/taizon
First of all make the [] button script and an event that is a system event
[] button
----------
SBC variable < /0
script call death
sbc end
input buttons wait
sbc variable user button =6
script call sword
sbc end
you can add more weapons.
set as action script.
----------
SWORD
----------
data game info load
X=Party X+0 fixed
Y=Party Y+0 fixed
Z=Party Z+0 fixed
script calle Dis 1 Link
wait for script end
sbc attack = 1
effect sword party (leader)
Damage=1
ZDisLimit=12
script call check target
wait for script end
sbc end
------------
health unit display(HUD)
------------
Here is how you make a Heal Guage display
sbc repeat 0 fixed off
sbc variable: Health<0
sbc end
sbc variable: Health=1
apply together
event effect [health1]
apply inorder
sbc end
sbc variable: Health=2
apply together
event effect [health1]
event effect [health2]
apply inorder
sbc end
and so on now to make it max out at a certain number use
sbc variable health>11
apply together
event effect [health11]
apply inorder
sbc end
sbc repeat end
set as action script
------------
Check target
--------------
Make some events name them enemy1 enemy2 and enemy3.
event control enemy1
samplevariable 00= 1
sbc repeat flag off fixed
event info load
sbc event X= X
sbc event Y= Y
DZ=Z-Event Z
sbc dz<0
DZ =DZ x -1
sbc end
sbc dz</Zdis
script call damage enemy
wait for script end
sbc end
sbc end
sbc end
samplevariable 00=1+samplevariable00.
sbc samplevariable00 =2
event control enemy2
sbc end
sbc samplevariable00 =3
event control enemy3
sbc end
sbc samplevariable00 =4
to end
sbc end
----------------
Damage Target
------------
sbc sample varible00 />1
part money+1 (can be set for how many you want)
e1hp=ei1hp - damage
event flash on1 off2
10f
flash on1 off 0
sbc e1hp </ 0
temp removal
sbc end
do this for others but change the e1 to e2
------------------
Distance
-----------
date game info load
event info load
x=partyx
y=partyy
z=partyz
Tx=eventx
Ty=eventy
Tz=eventz
DX=TX-X
DY=TY-Y
DZ=TZ-Z
sbc dx</0
dx=dx x -1
sbc end
sbc dy </ 0
dy=dy x -1
sbc
sbc dz</ 0
dz= dz x -1
sbc end
sbc DX<DY
DisXY=dy
sbc end
sbc dx />dy
dis XY=dx
sbc end
---------
target distance
---------------
date game info load
event info load
x=partyx
y=partyy
z=partyz
DX=TX-X
DY=TY-Y
DZ=TZ-Z
sbc dx</0
dx=dx x -1
sbc end
sbc dy</ 0
dy=dy x -1
sbc end
sbc dz </ 0
dz=dz x -1
sbc end
sbc dx < dy
disXY=dy
sbc end
sbc dx /> dy
disXY = DX
sbc end
-----------
damage character
-------------------
LinkHP=Linkhp-damage
sbc Linkhp</ 0
link hp=0 fixed
sound stop
screen effect color all black
text: game over press [] button
sbc end
---------------------
forward 1e
----------
sbc event dir 0
tx=tx+1
sbc end
sbc event dir 2
tx=tx+1
sbc event dir 4
tx=tx+-1
sbc event dir 6
tx=tx+-1
sbc end
---------
leftcheck-dmg area
-------------------
data game info load
sbc tx=partyx
ty=partyy
script call damage link
wait for script end
sbc end
sbc end
--------------------
Dis 1 link
-------------
sbc party dir0
x=x+1
sbc end
sbc party dir1
x=x+1
y=y+1
sbc end
sbcparty dir2
y=y+1
sbc end
sbc party dir 3
x=x+-1
y=y+1
sbc party dir 4
x=x+-1
sbc end
sbc party dir5
x=x+-1
y=y+-1
sbc end
sbc party dir6
y=y+-1
sbc end
sbc party dir7
x=x+1
y=y+-1
sbc end
------------------
death
-------------
close text bos
sbc link hp </ 0
link hp= hp/fract
teleport to saved
sbc end
add this to the square button script
---------------
death condition [start condition]
----------------
sbc link hp />1
satisft page off
sbc end
sbc link hp <1
satisfy page on
sbc end
go to events
turn on satisfy page on
start auto
apply death
second page linkhp>0
motion hud
start -touch-death condition
-------------
Dis 1 left link
---------------
sbc party dir0
y=y-+1
sbc end
sbc party dir1
x=x+1
y=y-+1
sbc end
sbcparty dir2
x=x+1
sbc end
sbc party dir 3
x=x+1
y=y+1
sbc party dir 4
y=y+1
sbc end
sbc party dir5
x=x+-1
y=y+1
sbc end
sbc party dir6
y=y+-1
sbc end
sbc party dir7
x=x-+1
y=y-+1
sbc end
------------
Dis 1 left link
---------------
sbc party dir0
y=y+1
sbc end
sbc party dir1
x=x-+1
y=y-+1
sbc end
sbcparty dir2
x=x-+1
sbc end
sbc party dir 3
x=x-+1
y=y-+1
sbc party dir 4
y=y-1
sbc end
sbc party dir5
x=x+1
y=y-+1
sbc end
sbc party dir6
y=y+1
sbc end
sbc party dir7
x=x+1
y=y+1
sbc end
------------
Herer's how you make an enemy
Red Demon
sbc repeat flag off fixed
apply together
data game info load
event effects special
effect event
apply inorder
10f
event info load
TX= eventx
TY= eventy
TZ= eventz
Damage=1+diff+damage
script call forward1 e
wait for script end
script Left check area damage
wait for script end
-------------
apply this to the load enemy models
Load enemy model1
-----------------
action
-------
sbc e1=0
temp. removal
sbc end
sbc e1=1
event model Imp
motion change walk speed 100
e1hp=3+Diff+hp
sbc repeat off fixed off
apply together
script call red demon
to leader 20f
apply inorder
wait for script to end
sbc end
(You can add more enemys by just simply changinjg the number for example
sbc e1=2 or e1=3. Place this into enemy1 in the events. and place it on the map.
Also to make different enemys appear on the map enter e1=2 within in the teleport scripts.)
-----------
Thats it for the tutorial. Good luck on you action rpg.
Any of this tutorial is owned by taizongames aka steven harper. Anyone who wants this placed on their website ask me
But remember to give credit to me on you site. and I will like to thank taizonking for helping me with this.(to taizonking where evr you are
give me my dvd of the phone booth back.) And I would like to thank neonash7777 for that tip about the event action to leader. It made my chasing the party easier. And the enemy conditions.(because i would make alot of enemy events instead of using conditions in a single script)
copyright steven harper January
action rpg tutorial
by Steven harper aka Taizongames
email taizongames@yahoo.com
website www.freewebs.com/taizon
First of all make the [] button script and an event that is a system event
[] button
----------
SBC variable < /0
script call death
sbc end
input buttons wait
sbc variable user button =6
script call sword
sbc end
you can add more weapons.
set as action script.
----------
SWORD
----------
data game info load
X=Party X+0 fixed
Y=Party Y+0 fixed
Z=Party Z+0 fixed
script calle Dis 1 Link
wait for script end
sbc attack = 1
effect sword party (leader)
Damage=1
ZDisLimit=12
script call check target
wait for script end
sbc end
------------
health unit display(HUD)
------------
Here is how you make a Heal Guage display
sbc repeat 0 fixed off
sbc variable: Health<0
sbc end
sbc variable: Health=1
apply together
event effect [health1]
apply inorder
sbc end
sbc variable: Health=2
apply together
event effect [health1]
event effect [health2]
apply inorder
sbc end
and so on now to make it max out at a certain number use
sbc variable health>11
apply together
event effect [health11]
apply inorder
sbc end
sbc repeat end
set as action script
------------
Check target
--------------
Make some events name them enemy1 enemy2 and enemy3.
event control enemy1
samplevariable 00= 1
sbc repeat flag off fixed
event info load
sbc event X= X
sbc event Y= Y
DZ=Z-Event Z
sbc dz<0
DZ =DZ x -1
sbc end
sbc dz</Zdis
script call damage enemy
wait for script end
sbc end
sbc end
sbc end
samplevariable 00=1+samplevariable00.
sbc samplevariable00 =2
event control enemy2
sbc end
sbc samplevariable00 =3
event control enemy3
sbc end
sbc samplevariable00 =4
to end
sbc end
----------------
Damage Target
------------
sbc sample varible00 />1
part money+1 (can be set for how many you want)
e1hp=ei1hp - damage
event flash on1 off2
10f
flash on1 off 0
sbc e1hp </ 0
temp removal
sbc end
do this for others but change the e1 to e2
------------------
Distance
-----------
date game info load
event info load
x=partyx
y=partyy
z=partyz
Tx=eventx
Ty=eventy
Tz=eventz
DX=TX-X
DY=TY-Y
DZ=TZ-Z
sbc dx</0
dx=dx x -1
sbc end
sbc dy </ 0
dy=dy x -1
sbc
sbc dz</ 0
dz= dz x -1
sbc end
sbc DX<DY
DisXY=dy
sbc end
sbc dx />dy
dis XY=dx
sbc end
---------
target distance
---------------
date game info load
event info load
x=partyx
y=partyy
z=partyz
DX=TX-X
DY=TY-Y
DZ=TZ-Z
sbc dx</0
dx=dx x -1
sbc end
sbc dy</ 0
dy=dy x -1
sbc end
sbc dz </ 0
dz=dz x -1
sbc end
sbc dx < dy
disXY=dy
sbc end
sbc dx /> dy
disXY = DX
sbc end
-----------
damage character
-------------------
LinkHP=Linkhp-damage
sbc Linkhp</ 0
link hp=0 fixed
sound stop
screen effect color all black
text: game over press [] button
sbc end
---------------------
forward 1e
----------
sbc event dir 0
tx=tx+1
sbc end
sbc event dir 2
tx=tx+1
sbc event dir 4
tx=tx+-1
sbc event dir 6
tx=tx+-1
sbc end
---------
leftcheck-dmg area
-------------------
data game info load
sbc tx=partyx
ty=partyy
script call damage link
wait for script end
sbc end
sbc end
--------------------
Dis 1 link
-------------
sbc party dir0
x=x+1
sbc end
sbc party dir1
x=x+1
y=y+1
sbc end
sbcparty dir2
y=y+1
sbc end
sbc party dir 3
x=x+-1
y=y+1
sbc party dir 4
x=x+-1
sbc end
sbc party dir5
x=x+-1
y=y+-1
sbc end
sbc party dir6
y=y+-1
sbc end
sbc party dir7
x=x+1
y=y+-1
sbc end
------------------
death
-------------
close text bos
sbc link hp </ 0
link hp= hp/fract
teleport to saved
sbc end
add this to the square button script
---------------
death condition [start condition]
----------------
sbc link hp />1
satisft page off
sbc end
sbc link hp <1
satisfy page on
sbc end
go to events
turn on satisfy page on
start auto
apply death
second page linkhp>0
motion hud
start -touch-death condition
-------------
Dis 1 left link
---------------
sbc party dir0
y=y-+1
sbc end
sbc party dir1
x=x+1
y=y-+1
sbc end
sbcparty dir2
x=x+1
sbc end
sbc party dir 3
x=x+1
y=y+1
sbc party dir 4
y=y+1
sbc end
sbc party dir5
x=x+-1
y=y+1
sbc end
sbc party dir6
y=y+-1
sbc end
sbc party dir7
x=x-+1
y=y-+1
sbc end
------------
Dis 1 left link
---------------
sbc party dir0
y=y+1
sbc end
sbc party dir1
x=x-+1
y=y-+1
sbc end
sbcparty dir2
x=x-+1
sbc end
sbc party dir 3
x=x-+1
y=y-+1
sbc party dir 4
y=y-1
sbc end
sbc party dir5
x=x+1
y=y-+1
sbc end
sbc party dir6
y=y+1
sbc end
sbc party dir7
x=x+1
y=y+1
sbc end
------------
Herer's how you make an enemy
Red Demon
sbc repeat flag off fixed
apply together
data game info load
event effects special
effect event
apply inorder
10f
event info load
TX= eventx
TY= eventy
TZ= eventz
Damage=1+diff+damage
script call forward1 e
wait for script end
script Left check area damage
wait for script end
-------------
apply this to the load enemy models
Load enemy model1
-----------------
action
-------
sbc e1=0
temp. removal
sbc end
sbc e1=1
event model Imp
motion change walk speed 100
e1hp=3+Diff+hp
sbc repeat off fixed off
apply together
script call red demon
to leader 20f
apply inorder
wait for script to end
sbc end
(You can add more enemys by just simply changinjg the number for example
sbc e1=2 or e1=3. Place this into enemy1 in the events. and place it on the map.
Also to make different enemys appear on the map enter e1=2 within in the teleport scripts.)
-----------
Thats it for the tutorial. Good luck on you action rpg.
Any of this tutorial is owned by taizongames aka steven harper. Anyone who wants this placed on their website ask me
But remember to give credit to me on you site. and I will like to thank taizonking for helping me with this.(to taizonking where evr you are
give me my dvd of the phone booth back.) And I would like to thank neonash7777 for that tip about the event action to leader. It made my chasing the party easier. And the enemy conditions.(because i would make alot of enemy events instead of using conditions in a single script)
copyright steven harper January