Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Clone hit problem
#1
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
Reply
Thanks given by:
#2
try to use wait 1 instead of 0 in the last two frames
Reply
Thanks given by: Hax0r
#3
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.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: Hax0r
#4
    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...
Reply
Thanks given by: Hax0r
#5
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.
Reply
Thanks given by:
#6
(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...
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by: Hax0r
#7
mp: -YYXXX
does not work... loosing HP can be in the first frame of a move sequence only
Reply
Thanks given by: Hax0r
#8
you could also use the ball-transform way:
http://www.lf-empire.de/lfev9/en/lf2-emp...nto-a-ball
Reply
Thanks given by: Hax0r
#9
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 .


Reply
Thanks given by: Hax0r
#10
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
Reply
Thanks given by: Hax0r




Users browsing this thread: 1 Guest(s)