|
|
|
|
Posted 2008-02-03, 11:12 AM
in reply to Goodlookinguy's post starting "I've been working on my cheep RPG Maker..."
|
|
|
|
Goodlookinguy said:
I've been working on my cheep RPG Maker 2k3 game using only the RTP, it will be done soon!
|
I'm in the middle of coding my cbs/abs. It's a bitch.
I don't use the action key for my attack because it conflicts with activating events and talking to people so I use the shift key.
Coding a "strike" is lengthy because of the coordinate processing and everything else.
For example:
Code:
<>Variable Oper: [enemy x] Set, This Event X Coord.
<>Variable Oper: [enemy y] Set, This Event Y Coord.
<>Variable Oper: [enemy x] -, Hero X Coord.
<>Variable Oper: [enemy y] -, Hero Y Coord.
<>Branch if Var [enemy x] is -1
<>Branch if Var [enemy y] is -1
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy y] is 0
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy y] is 1
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy x] is 0
<>Branch if Var [enemy y] is -1
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy y] is 0
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy y] is 1
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy x] is 1
<>Branch if Var [enemy y] is -1
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy y] is 0
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler
<>Branch if Var [enemy y] is 1
<>Play sound: hit
<>Variable Oper [enemy hp] +, 1
<>Flash Sprite
<>Branch if Var [enemy hep] is 3 or more
<>Flash screen
<>Battle Animation: Enemy Die
<>Wait 0.3
<>Switch Operation [enemy 01] ON
: Else Handler
<>Move Event: Face Away from Hero, Begin Jump, Move Forward
<>
: End
<>
: Else Handler |
Fun, eh?
It seems like just a cut and paste job but it's rather difficult and time consuming to intergrate it with the magic/skill system.
Last edited by Wed-G; 2008-02-03 at 11:14 AM.
|
|
|
|
|
|
|
|
|
|
|