Little Fighter Empire - Forums
[solved] Clone hit problem - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14)
+---- Thread: [solved] Clone hit problem (/showthread.php?tid=3325)

Pages: 1 2


[solved] Clone hit problem - Hax0r - 07-28-2009

Hi!
A have problem, i create char that fight with clones and sword and i want to do he clone and i do this:

    DC-Code:
<frame> 355 bs
   pic: 0  state: 3  wait: 2  next: 357  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
<frame_end>
 
<frame> 356 bs
   pic: 0  state: 3  wait: 2  next: 357  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
<frame_end>
 
<frame> 357 bs
   pic: 0  state: 3  wait: 0  next: 358  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
   opoint:
      kind: 1  x: 85  y: 70  action: 60  dvx: 0  dvy: 0  oid: 204  facing: 0
   opoint_end:
<frame_end> 
 
<frame> 358 bs
   pic: 0  state: 3  wait: 0  next: 359  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
    opoint:
      kind: 1  x: -5  y: 70  action: 60  dvx: 0  dvy: 0  oid: 204  facing: 0
   opoint_end:
<frame_end>
 
<frame> 359 bs
   pic: 0  state: 18  wait: 0  next: 360  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
   opoint:
      kind: 1  x: 85  y: 70  action: 0  dvx: 0  dvy: 0  oid: 24  facing: 0
   opoint_end:
   itr:
      kind: 0  x: 85  y: 70  w: 2  h: 2  dvx: 0 fall: -1 bdefend: 100  injury: 490 
   itr_end:
<frame_end>
 
<frame> 360 bs
   pic: 0  state: 18  wait: 0  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 355
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
    opoint:
      kind: 1  x: -5  y: 70  action: 0  dvx: 0  dvy: 0  oid: 24  facing: 0
   opoint_end:
   itr:
      kind: 0  x: -5  y: 70  w: 2  h: 2  dvx: 0 fall: -1 bdefend: 100  injury: 490 
   itr_end:
<frame_end>



i want to create clones from his id and hit them for 490 with state 18 but it dont work they dont have 10 hp.
Plz help me, show where is my mistake.
Thanks


RE: Clone hit problem - TheNave - 07-28-2009

try to use wait 1 instead of 0 in the last two frames


RE: Clone hit problem - Som1Lse - 07-28-2009

Check your code there is a mayor bug.

    DC-Code:
<frame> 355 bs
   pic: 0  state: 3  wait: 2  next: 357  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
<frame_end>
 
<frame> 356 bs
   pic: 0  state: 3  wait: 2  next: 357  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
<frame_end>
 
<frame> 357 bs
   pic: 0  state: 3  wait: 0  next: 358  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
   opoint:
      kind: 1  x: 85  y: 70  action: 60  dvx: 0  dvy: 0  oid: 204  facing: 0
   opoint_end:
<frame_end> 
 
<frame> 358 bs
   pic: 0  state: 3  wait: 0  next: 359  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
    opoint:
      kind: 1  x: -5  y: 70  action: 60  dvx: 0  dvy: 0  oid: 204  facing: 0
   opoint_end:
<frame_end>
 
<frame> 359 bs
   pic: 0  state: 18  wait: 0 next: 360  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
   opoint:
      kind: 1  x: 85  y: 70  action: 0  dvx: 0  dvy: 0  oid: 24  facing: 0
   opoint_end:
   itr:
      kind: 0  x: 85  y: 70  w: 2  h: 2  dvx: 0 fall: -1 bdefend: 100  injury: 490 
   itr_end:
<frame_end>
 
<frame> 360 bs
   pic: 0  state: 18  >>wait: 0<<  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 355
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
    opoint:
      kind: 1  x: -5  y: 70  action: 0  dvx: 0  dvy: 0  oid: 24  facing: 0
   opoint_end:
   itr:
      kind: 0  x: -5  y: 70  w: 2  h: 2  dvx: 0 fall: -1 bdefend: 100  injury: 490 
   itr_end:
<frame_end>


Look at wait in frame 360. That is to small for the char to hit anything. Also change the itr so it has vrest: 10 or something.

It could also be a messed up bdy or something else plese show all the frames.

Edit: Ninjaed.


RE: Clone hit problem - TheNave - 07-28-2009

    DC-Code:
<frame> 355 bs
   pic: 0  state: 3  wait: 2  next: 357  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
<frame_end>
 
<frame> 356 bs
   pic: 0  state: 3  wait: 2  next: 357  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
<frame_end>
 
<frame> 357 bs
   pic: 0  state: 3  wait: 0  next: 358  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
   opoint:
      kind: 1  x: 85  y: 70  action: 60  dvx: 0  dvy: 0  oid: 204  facing: 0
   opoint_end:
<frame_end> 
 
<frame> 358 bs
   pic: 0  state: 3  wait: 0  next: 359  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
    opoint:
      kind: 1  x: -5  y: 70  action: 60  dvx: 0  dvy: 0  oid: 204  facing: 0
   opoint_end:
<frame_end>
 
<frame> 359 bs
   pic: 0  state: 18  wait: 0  next: 360  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
   opoint:
      kind: 1  x: 85  y: 70  action: 0  dvx: 0  dvy: 0  oid: 24  facing: 0
   opoint_end:
<frame_end>
 
<frame> 360 bs
   pic: 0  state: 18  wait: 2  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 36  centery: 79  hit_a: 0  hit_d: 0  hit_j: 355
   bdy:
      kind: 0  x: 17  y: 27  w: 43  h: 53
   bdy_end:
    opoint:
      kind: 1  x: -5  y: 70  action: 0  dvx: 0  dvy: 0  oid: 24  facing: 0
   opoint_end:
   itr:
      kind: 0  x: -5  y: 70  w: 90  h: 2  dvx: 0 fall: -1 bdefend: 100  injury: 490
   itr_end:
<frame_end>

try this one... not sure if it works, it could also kill the enemys in your range...


RE: Clone hit problem - Hax0r - 07-28-2009

I was trying everything what you say (longer wait, bigger itr, even whole code from TheNave) and dont work i have idea i will do fames in char that take 490 hp (dark red bar not light red) but i dont know how to code it (mp:49000 or meaby something else but must take Dark red from bar not light) Please give some ideas how to code it in few other ways.


RE: Clone hit problem - Alblaka - 07-28-2009

(07-28-2009, 02:54 PM)Hax0r Wrote:  I was trying everything what you say (longer wait, bigger itr, even whole code from TheNave) and dont work i have idea i will do fames in char that take 490 hp (dark red bar not light red) but i dont know how to code it (mp:49000 or meaby something else but must take Dark red from bar not light) Please give some ideas how to code it in few other ways.

Simply make some special frames for the clones that lead to another special frame with mp: -49000
Then make the action-value (of opoint) into the framenumber of the special clone frame and they MAYBE loose 490 hp directly after summon...

But i'm not sure, whether negative mp/hp-tags work with HP...


If not you have to put a special bdy into the summon frames and spawn a invisible T3 together with the clones, which uses vrest:500 to hit every clone one time, but doesn't harm anything else...


RE: Clone hit problem - TheNave - 07-28-2009

mp: -YYXXX
does not work... loosing HP can be in the first frame of a move sequence only


RE: Clone hit problem - Bamboori - 07-28-2009

you could also use the ball-transform way:
http://www.lf-empire.de/lfev9/en/lf2-empire/data-changing/advanced-dc/31-advanced-dc-type-0/692-transform-into-a-ball


RE: Clone hit problem - HappyHouR - 07-28-2009

If you want to set your clone hp without state:18 here an idea.

Opoint Type 3. Make the ball lose 490 hp simple by using hit_a: 490 and then use another frame with state 8xxx to transform into your character.Oh and the pics 0-139 will be consider as 140-279.

You could Try also this. Opoint id 5 in frame that transform it into your character.This id has max of 10hp & it dosnt gain hp.

All those methods are good if your just summon clone & you want him to do anyting special.If you want your clone to do an action(like dashattack/teleport/strife) right when you summon him then you need to hit ur character with ball using state:18.I will post the code .





RE: Clone hit problem - Bamboori - 07-28-2009

HappyHour Wrote:Opoint Type 3. Make the ball lose 490 hp simple by using hit_a: 490 and then use another frame with state 8xxx to transform into your character.Oh and the pics 0-139 will be consider as 140-279.
isn't that what i just said? :P