Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Use skill with HP
#1
I want to creat a skill without used MP but use HP . I try to with hp: 100 but there are no working , how to do that ?
    DC-Code:
<frame> 313 Shuriken
   pic: 10  state: 3  wait: 1  next: 318  dvx: 0  dvy: 0  dvz: 0  centerx: 52  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 hp: 100
  sound: data\074.wav 
   wpoint:
      kind: 3  x: 40  y: 43  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 314 Shuriken
   pic: 10  state: 3  wait: 1  next: 319  dvx: 0  dvy: 0  dvz: 0  centerx: 52  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 315 Shuriken
   pic: 11  state: 3  wait: 1  next: 320  dvx: 0  dvy: 0  dvz: 0  centerx: 52  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 mp: 
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 316 Shuriken
   pic: 11  state: 3  wait: 1  next: 321  dvx: 0  dvy: 0  dvz: 0  centerx: 52  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 317 Shuriken
   pic: 11  state: 3  wait: 2  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 52  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   opoint:
      kind: 1  x: 40  y: 39  action: 40  dvx: 0  dvy: 0  oid: 200  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 17  y: 51  weaponact: 20  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 18  y: 11  w: 37  h: 68
   bdy_end:
<frame_end>
 
<frame> 318 Shuriken
   pic: 12  state: 3  wait: 3  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 52  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   opoint:
      kind: 2  x: 42  y: 51  action: 0  dvx: 0  dvy: 0  oid: 123  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 42  y: 51  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
My Release Project (Click to View)
Reply
Thanks given by:
#2
I love mainsite :D
Quote:mp: ...
Auch dieser Tag ist optional und regelt die Energiekosten. Er steht meist in der ersten Frame eines Moves. Diese Regel von Zizibaluga erklärt die Grundfunktion:

mp: yyxxx
x = MP lost
y = HP lost
mp: -yyxxx
x = MP gained
y = HP gained

HP werden in immer in Zehner-Stufen abgezogen, es
ist nicht möglich hiermit 1 bis 9 Punkte abzuziehen.


Die letzten drei Zahlen sind für Energiepunkte zuständig, die ersten zwei für Lebenspunkte. Hier ein Beispiel: "mp: 4300" entspricht Kosten von 40 Lebenspunkten und 300 Energiepunkten.
Wem das nicht genügt sollte ins Advanced Tutorial über die MP-Usage schauen.
Reply
Thanks given by: Daymio
#3
I don't think I understand that . And mp: yyxxx with x: MP lost and y: Hp lost . but why mp: 150 then it's loss MP but don't loss HP
My Release Project (Click to View)
Reply
Thanks given by:
#4
*Faceclaw*

The last three number are mp amount, the first 2 are the hp amount x 10

EX:
mp: 14500

500 is the last 3 so you will lost 500 mp

14 is the first two number so you will lost 14 x 10 = 140 hp
Reply
Thanks given by: Alblaka
#5
Oh yeah , I understand now . It's solved , Administrator can delete or lock this topic , thanks helpers
My Release Project (Click to View)
Reply
Thanks given by:
#6
Explanation:

yyxxx means that we have 2 variable yy and xxx (just think as variables a number which varies or changes) in the tag mp: these two variables is set.

When we uses mp: 12345 yy is 12 and xxx is 345 we then multiplyes yy with 10 so 12*10 = 120. When performing the move the character looses 120 HP which is yy and 345 MP which is xxx

So:
yyxxx
12345

The first 2 is yy and the last 3 is xxx.

(07-27-2009, 09:30 AM)truongdzuy Wrote:  I don't think I understand that . And mp: yyxxx with x: MP lost and y: Hp lost . but why mp: 150 then it's loss MP but don't loss HP
You know that 150 is the same as 00150 so yy = 00 and xxx = 150.
00*10 = 0.

I know I am ninjaed. What double 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:




Users browsing this thread: 1 Guest(s)