Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
An move that use hp, not mp
#1
Hi, i am newbie DCer(anyone know that's only greet)

i have a problema..
i want to make a move but that move drains hp, not mp.
But i can't, How?
Shin Hanazumi
The Second Flower of Hanazumi Kazoku
Junior Data Changer
Reply
Thanks given by:
#2
I will not deliver you any code (Cause I think it's necessary to figure out coding on your own).
Try making the move itself cost 0 mp but spawning a ball (at y: 5000 for example) that damages the player for the amount of hp you want to drain. The Player itself is given a body at y: 5000.
I don't exactly remember if players can get hit by self-spawned balls but the alternative is creating a clone at a certain state (Basically just a frame where he spawns the ball) and then deleting that clone.

Good luck with your coding.

Edit:
How could I forget about that?
Facepalm.
Reply
Thanks given by:
#3
use mp tag
mp: 15500
uses 150 HP and 500 MP for my Krillin
so I'm guessing
mp: 15000
uses 150 HP
(however this method only drains the light red and the dark red stays at 500 so you can heal back with state 1700 moves)
Reply
Thanks given by:
#4
bashscrazy Wrote:use mp tag
mp: 15500
uses 150 HP and 500 MP for my Krillin
so I'm guessing
mp: 15000
uses 150 HP
(however this method only drains the light red and the dark red stays at 500 so you can heal back with state 1700 moves)
aw, i only want to drain 50 or less.. but, thanks for the tip
Ascor Wrote:I will not deliver you any code (Cause I think it's necessary to figure out coding on your own).
Try making the move itself cost 0 mp but spawning a ball (at y: 5000 for example) that damages the player for the amount of hp you want to drain. The Player itself is given a body at y: 5000.
I don't exactly remember if players can get hit by self-spawned balls but the alternative is creating a clone at a certain state (Basically just a frame where he spawns the ball) and then deleting that clone.

Good luck with your coding.
aw, i don't really understand XP, but thanks for the tip, i will learn it
Shin Hanazumi
The Second Flower of Hanazumi Kazoku
Junior Data Changer
Reply
Thanks given by:
#5
then just change the values ....................
Reply
Thanks given by:
#6
(09-21-2011, 01:54 PM)bashscrazy Wrote:  then just change the values ....................
if i change into mp: 205 for drain 25 hp, it will cost 205 mp not 25 hp :(
Shin Hanazumi
The Second Flower of Hanazumi Kazoku
Junior Data Changer
Reply
Thanks given by:
#7
(09-21-2011, 02:04 PM)shin hanazumi Wrote:  
(09-21-2011, 01:54 PM)bashscrazy Wrote:  then just change the values ....................
if i change into mp: 205 for drain 25 hp, it will cost 205 mp not 25 hp :(

learn math pl0x.

mp: 15000 uses 150 hp
so why would 205 use 25 hp?
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)