hi,
I guess I'v found a few hours ago the answer to this problem :D.
just look at this exemple. I started editing a few days ago, and a friend of me asked me to edit an firzen to him, with a move that call 1 firen and 1 freeze with 10 hp (so it won't be a "broken char").
I'v done some tests and then I'v asked myself "I can't damage them that easly with that precision, exactly 490 pts", so, the only solution is to make the char sacrifices that much hp with an attack. In other words, I must force the char do a move for itself that sacrifices that much. my newbie DC solution is this, take a look at my chars code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FIRZEN:
DC-Code:
<frame> 304 summon
pic: 92 state: 15 wait: 1 next: 305 dvx: 0 dvy: 0 dvz: 0 centerx: 41 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 46 y: 49 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 305 summon
pic: 102 state: 15 wait: 1 next: 306 dvx: 0 dvy: 0 dvz: 0 centerx: 41 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 1 x: 40 y: 79 action: 397 dvx: 0 dvy: 0 oid: 7 facing: 10
opoint_end:
wpoint:
kind: 1 x: 46 y: 49 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 306 summon
pic: 101 state: 15 wait: 1 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 41 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 1 x: 40 y: 79 action: 397 dvx: 0 dvy: 0 oid: 8 facing: 10
opoint_end:
wpoint:
kind: 1 x: 46 y: 49 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
---------------------------------------------------------------
Then add to firen and freeze this frames:
DC-Code:
<frame> 398 Summoned
pic: 0 state: 10 wait: 1 next: 397 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 396 hit_d: 396 hit_j: 396 hit_Fa: 396 hit_Fj: 396 hit_Uj: 396 hit_Dj: 396
bpoint:
x: 41 y: 35
bpoint_end:
wpoint:
kind: 1 x: 29 y: 55 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
<frame_end>
<frame> 397 Summoned
pic: 0 state: 10 wait: 1 next: 398 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 396 hit_d: 396 hit_j: 396 hit_Fa: 396 hit_Fj: 396 hit_Uj: 396 hit_Dj: 396
bpoint:
x: 41 y: 35
bpoint_end:
wpoint:
kind: 1 x: 29 y: 55 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
<frame_end>
<frame> 396 Summoned phase-2
pic: 0 state: 0 wait: 1 next: 110 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 mp: 49100
bpoint:
x: 41 y: 35
bpoint_end:
wpoint:
kind: 1 x: 29 y: 55 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Actually, I'v tested the chars a lot a times and ever works. not allways right at the moment, but works with no fail.
But as you can see, I'v put the summoned chars frames in a cycle with no body, so the chars cannot be alved, and with state 10, that make the chars to do not respond to any keys the AI uses. its only ways to get free from that "prision" is to use the right keys
hit_a: 396 hit_d: 396 hit_j: 396 hit_Fa: 396 hit_Fj: 396 hit_Uj: 396 hit_Dj: 396
to pass to next possible frame, frame 396. and when they does, they loses 490 hp and 100mp.
The only fail in this is that the char may have more than 10 hp :(.
I hope I'v helped ;)