Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reviving move
#1
So i already downloaded the move after death example from the mainsite but
my problem now is that the char should only be able to revive if I press a special button and it should cost mp ... but then i added the mp tags it doesnt work at all

here's my code
char:
    DC-Code:
<frame> 230 lying
   pic: 34  state: 14  wait: 30  next: 219  dvx: 0  dvy: 0  dvz: 0  centerx: 38  centery: 73
   hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 39  y: 74  weaponact: 32  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 0  y: 400  w: 80  h: 80
   bdy_end:
 
<frame_end>
 
<frame> 231 lying
   pic: 44  state: 14  wait: 30  next: 219  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 75 hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 57  y: 74  weaponact: 24  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 0  y: 600  w: 80  h: 80
   bdy_end:
opoint:
      kind: 1  x: 40  y: 75  action: 110  dvx: 0  dvy: 0  oid: 207  facing: 0 
   opoint_end:
<frame_end>


ball:
    DC-Code:
<frame> 110  transform
   pic: 1000  state: 3000  wait: 0  next: 111  dvx: 0  dvy: 0  centerx: 0  centery: 0
   hit_a: 0  hit_d: 0  hit_j: 0 
<frame_end>
 
<frame> 111  transform
   pic: 1000  state: 18    wait: 0  next: 112  dvx: 0  dvy: 0  centerx: 0  centery: 0
   hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 0  y: 600  w: 80  h: 80  dvx: 0  fall: -100  bdefend: -100  injury: -300
   itr_end:
<frame_end>
 
<frame> 112  transform
   pic: 1000  state: 18    wait: 3  next: 1000 dvx: 0  dvy: 0  centerx: 0  centery: 73
   hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 3  x: 0  y: 600  w: 80  h: 80  vrest: 7  
      catchingact: 113 113  caughtact: 310 310
   itr_end:
<frame_end>


Thats the first problem, the second is that i dont want it to happen automatically so my idea was something like this: If I add hit_a : 309
it goes to this certain frame and then it activates

    DC-Code:
<frame> 231 lying
   pic: 44  state: 14  wait: 30  next: 219  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 75 hit_a: 309  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 57  y: 74  weaponact: 24  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 0  y: 600  w: 80  h: 80
   bdy_end:
<frame_end>
 
.
.
.
 
<frame> 309 lying
   pic: 44  state: 14  wait: 30  next: 219  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 75 hit_a: 309  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 57  y: 74  weaponact: 24  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 0  y: 600  w: 80  h: 80
   bdy_end:
   opoint:
      kind: 1  x: 40  y: 75  action: 110  dvx: 0  dvy: 0  oid: 207  facing: 0 
   opoint_end:
<frame_end>


i would be grateful to any help ;)
Reply
Thanks given by:
#2
my problem now is that the char should only be able to revive if I press a special button and it should cost mp ... but then i added the mp tags it doesnt work at all

my guess: when you're dead you dont have any hp pr mp, so maybe thats the reason why it dont work...
[Image: random.php?pic=random]
www.lf-empire.de
Once I had a fortune, it said: "Leave now. Life is short. Time is luck"
Don't dream your life, live your dream!
Reply
Thanks given by:
#3
My guess: If you're dead the object is unloaded, thus you cant perform any key inputs. From a few reviving moves of my own I remeber mp is NOT deleted after death.

Try using the move-after death to get your character into a frame with mp: -300, followed by a frame with mp: -1, which has a hit_d leading to a "I'm dead" frame and a next leading to the revival frame (where you opoint something which hits the character for negative damage. All frames should have wait:0
I won't gurantuee for this to work, but it could be possible. And actually, it would be an interesting concept for "undead minions" who do not have any special moves on their own, but will simply resurrect themselves if their mp bar is full upon death (> you need to kill them twice in quick succession).
My Creations: (Click to View)

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


Greetz,
Alblaka
Reply
Thanks given by:
#4
one problem is you aren't using a next: to get to an opoint



Azriel~
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)