Posts: 118
Threads: 20
Joined: May 2011
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
Thanks given by:
Posts: 1,577
Threads: 58
Joined: Jul 2008
09-21-2011, 01:39 PM
(This post was last modified: 09-21-2011, 01:42 PM by Ascor.)
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.
Thanks given by:
Posts: 1,339
Threads: 32
Joined: Jan 2011
09-21-2011, 01:41 PM
(This post was last modified: 09-21-2011, 01:43 PM by bashscrazy.)
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)
Thanks given by:
Posts: 118
Threads: 20
Joined: May 2011
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
Thanks given by:
Posts: 1,339
Threads: 32
Joined: Jan 2011
then just change the values ....................
Thanks given by:
Posts: 118
Threads: 20
Joined: May 2011
(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
Thanks given by: