Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make Mp cost when get fire
#1
If a character gets hit by fire flame. He will lose a lot of mp and hp. So how to make this possible ?
[Image: 0d0f41baa54f422d9f4af25f22b297e6.0.gif]
Reply
Thanks given by:
#2
In the burning frames, add a tag of mp: ??? to cost mp.
[Image: icyboards-ad-468x60.gif]
Reply
Thanks given by:
#3
the mp you have to set in the dat of the charakter and the hp in the dat of the flame
example for mp(firen.dat)
in frame 272 in the second row there is at the end "mp: -8" this number is how many the attack will cost
    DC-Code:
<frame> 270 flame
   pic: 173  state: 3  wait: 1  next: 271  dvx: 0  dvy: 0  dvz: 0  centerx: 22  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 15  y: 57  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 8  y: 18  w: 47  h: 65
   bdy_end:
<frame_end>
 
<frame> 271 flame
   pic: 174  state: 3  wait: 1  next: 272  dvx: 0  dvy: 0  dvz: 0  centerx: 22  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\071.wav 
   opoint:
      kind: 1  x: 42  y: 41  action: 0  dvx: 0  dvy: 0  oid: 211  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 14  y: 57  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 8  y: 15  w: 42  h: 64
   bdy_end:
<frame_end>
 
<frame> 272 flame
   pic: 173  state: 3  wait: 1  next: 273  dvx: 0  dvy: 0  dvz: 0  centerx: 22  centery: 79  hit_a: 0  hit_d: 283  hit_j: 283 mp: -8
   wpoint:
      kind: 1  x: 15  y: 57  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 6  y: 16  w: 45  h: 64
   bdy_end:
<frame_end>
 
<frame> 273 flame
   pic: 174  state: 3  wait: 1  next: 274  dvx: 0  dvy: 0  dvz: 0  centerx: 22  centery: 79  hit_a: 0  hit_d: 283  hit_j: 283 mp: -8
   wpoint:
      kind: 1  x: 14  y: 57  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 6  y: 16  w: 47  h: 65
   bdy_end:
<frame_end>
 
<frame> 274 flame
   pic: 173  state: 3  wait: 1  next: 275  dvx: 0  dvy: 0  dvz: 0  centerx: 22  centery: 79  hit_a: 0  hit_d: 283  hit_j: 283 mp: -8
   opoint:
      kind: 1  x: 42  y: 41  action: 0  dvx: 0  dvy: 0  oid: 211  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 15  y: 57  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 6  y: 18  w: 47  h: 63
   bdy_end:
<frame_end>
 
<frame> 275 flame
   pic: 174  state: 3  wait: 1  next: 270  dvx: 0  dvy: 0  dvz: 0  centerx: 22  centery: 79  hit_a: 0  hit_d: 283  hit_j: 283 mp: -8
   wpoint:
      kind: 1  x: 14  y: 57  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 7  y: 18  w: 43  h: 63
   bdy_end:
<frame_end>

example for hp(firen_flame.dat)
in every frame you see an "injury: 85"
change this numbers to change the damage of the attack
    DC-Code:
<frame> 1 flying
   pic: 1  state: 18  wait: 1  next: 2  dvx: 3  dvy: 0  centerx: 1  centery: 47  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 6  y: 27  w: 34  h: 25  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 2 flying
   pic: 2  state: 18  wait: 1  next: 3  dvx: 2  dvy: 0  centerx: 7  centery: 49  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 6  y: 27  w: 34  h: 25  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 3 flying
   pic: 3  state: 18  wait: 1  next: 4  dvx: 2  dvy: 0  centerx: 9  centery: 53  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 9  y: 32  w: 37  h: 23  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 4 flying
   pic: 4  state: 18  wait: 1  next: 5  dvx: 2  dvy: 0  centerx: 4  centery: 55  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 4  y: 28  w: 40  h: 29  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 5 flying
   pic: 5  state: 18  wait: 1  next: 6  dvx: 3  dvy: 0  centerx: 6  centery: 54  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 8  y: 19  w: 44  h: 38  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 6 flying
   pic: 6  state: 18  wait: 1  next: 7  dvx: 4  dvy: 0  centerx: 6  centery: 45  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 6  y: 5  w: 44  h: 42  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 7 flying
   pic: 7  state: 18  wait: 1  next: 8  dvx: 4  dvy: 0  centerx: 12  centery: 47  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 10  y: 10  w: 43  h: 39  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 8 flying
   pic: 8  state: 18  wait: 1  next: 9  dvx: 4  dvy: 0  centerx: 9  centery: 48  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 6  y: 5  w: 46  h: 46  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>
 
<frame> 9 flying
   pic: 9  state: 18  wait: 1  next: 100  dvx: 3  dvy: 0  centerx: 10  centery: 54  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 7  y: 8  w: 44  h: 49  dvx: 10  dvy: -10  fall: 70  vrest: 300  bdefend: 16  injury: 85  
      effect: 21  
   itr_end:
<frame_end>

I hope i could help you
ps: sorry for my bad english(I will learn it)
Reply
Thanks given by:
#4
Thank you, but can make char lose much heath without changing Fire ball's Irt
[Image: 0d0f41baa54f422d9f4af25f22b297e6.0.gif]
Reply
Thanks given by:
#5
The itr exclusively afftects people you hit while flying, it does NOT affect the "fire damage" your char takes... given there is no burn-effect at all.

You could extend the mp tags to hp draining tags, though (mp: -xxyyy will drain yyy mana and xx0 hp)
My Creations: (Click to View)

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


Greetz,
Alblaka
Reply
Thanks given by:
#6
(02-19-2012, 04:18 AM)Huy95 Wrote:  Thank you, but can make char lose much heath without changing Fire ball's Irt

I don't know I think you have to change the fire ball's irt
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)