[SOLVED] Player blocking but not receiving damage in mp

Glitch

Member
I have my player with ''anim block'' , ''anim blockpain'', and with all relevant block header data (Not sure I understand them all).

Player is blocking enemy's attack but no damage is being taken via mp or even health.

I require the player to take 0.25 damage from attacks via mp while blocking.

This is the first time I am using the block ability in a character, was afraid to do it before,  hope I can get it right



 
Player header data:
Code:
name	Dean
health    100
mpset 100 0 100 1 0 2
speed      9
type	   player
jumpheight 3.3
gfxshadow 1
shadow	3

holdblock       1
blockratio	1
mpblock		1
nochipdeath	1
blockback	0

thold           15
blockpain       10
knockdowncount  18

running	16 3.7 1.3 1 0
jumpmove 0 1
noquake    1
makeinv    4
playshotno sp
atchain    1 2 1 1 2 4 5 4 5 3

grabwalk   7
grabdistance 42

weapons    dean1 dean
icon	data/chars/3dean/pisicon.gif
diesound data/chars/3dean/death.wav

hostile  npc enemy obstacle
candamage  npc enemy obstacle

dust   dust dust1

load dust1
load bulletpc




//a punch button//
com	d u a	freespecial29
com	d f a	freespecial6
com	u u a	freespecial7
com	f b a	freespecial25
com	d f u a	freespecial3
com     d d a   freespecial13
com	d a     freespecial38


//a2 draw weapon shoot button//
com	a2	freespecial5


//a3 kick button//
com	a3	freespecial53
com	d d a3	freespecial12
com	d f a3	freespecial10
com	d u a3	freespecial30
com	d f u a3	freespecial31


//a4 interact use button//
com	a4 u	freespecial1
com	a4 d 	freespecial48
 
Enemy attack animation:
Code:
anim	attack1
	range	0 60
	loop	0
	delay	9
	offset	83 178
	bbox	65 102 46 76
	frame	data/chars/j/a101.gif
	delay	18
	attack	99 100 49 13 8 8 0 0 10 7
	frame	data/chars/j/a102.gif
	delay	8
	attack	0 0 0 0 0
	frame	data/chars/j/a103.gif
	delay	18
	attack	101 107 49 16 8 8 0 0 10 7
	frame	data/chars/j/a104.gif
	delay	8
	attack	0 0 0 0 0 0
	frame	data/chars/j/a103.gif
 
Glitch, please enclose your text file examples in code tags (use the # button if you don't know how). This makes it a lot easier for us to read and decipher. There are dozens of ways you can set up blocking module wide or for individual models, but here's the most basic, global settings. From what I can tell, that should be what you need.

DC
 
Damon Caskey said:
Glitch, please enclose your text file examples in code tags (use the # button if you don't know how). This makes it a lot easier for us to read and decipher. There are dozens of ways you can set up blocking module wide or for individual models, but here's the most basic, global settings. From what I can tell, that should be what you need.

DC

My apologies dc, I tried putting in a quote but could not find the quote button in new layout.
Do I just place a hash before a text and after to make it a quote?
Lol I found the quote button now  ::)

Hmm thank you dc, the link you provided is to the Openbor Manual which I have checked and got the above block data headers.
It is not working with those, perhaps there is some other thing else I am missing that is needed to make blocking work with damage being taken via mp, could you kindly show me an example of doing this

 
Not really off the top of my head then. I am about to hit the road, but I'll try to take a closer look tonight if someone doesn't beat me to it. If Bloodbane is around today he might have an answer. Oh, and btw, "DC" is just my initials, not my user name. You're tagging someone who doesn't really exist.  :P

DC
 
Damon Caskey said:
Not really off the top of my head then. I am about to hit the road, but I'll try to take a closer look tonight if someone doesn't beat me to it. If Bloodbane is around today he might have an answer.

Thank you for the link though, sure I know everyone gets busy. Will await assistance patiently, and hey I might even figure out what is wrong in the interim :D


Damon Caskey said:
Oh, and btw, "DC" is just my initials, not my user name. You're tagging someone who doesn't really exist.  :P

DC

Oops!Damon Caskey  , Lol ;D I am not much of a social networking person, this and Watsapp are the only social sites I use.

 
Bloodbane said:
Glitch  : have you declared blockratio and mpblock in models.txt yet? you need those to allow player to lose MP or HP from successful block

Nope Bloodbane , I thought they were player headers  :-[
It's working fine now after adding them in models.txt, thank you Bloodbane :)

Now I am going to play around with blocking and see what values in enemy attack and players ''thold'' and ''blockpain'' I need for blockpain to come into play... Would ''thold 15'' and ''blockpain 15'' be good for a character like Dean, given that the lowest enemy attack is 8 and the highest special enemy attack is 25?
 
Back
Top Bottom