Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hitting target with skills causes attacker lose HP
#1
Hi,
I was just messing with the code and found something interesting. I was trying to make ID 9 some special functions when he gets hit by effect 0 or 1 (basically by normal attacks and skills excluding fire and ice). So what this code does is when you hit ID 9 (Dennis), then you lose 10 hp per attack. He loses hp normally, but the magic starts when you hit him with the ball. Somehow your character is taking damage as he would do hitting him with normal punches. :o Another thing is that I was using Davis's balls on Dennis while standing next to another Davis to check if this works with certain ID, and nothing happened to this second Davis.
I think that would make something like spellvamp available, when instead of losing HP, a character using skills against ID 9 would gain HP, but too bad that its not working 100% correctly. This is because all attacks hits ID 9 so fast that he loses half hp by one kick or ball (or something like that). The second bug is that he can only be pushed to the right side (if you hit him with dash attack from right side he will be kicked to right).

Here's the code (I must say I don't understand most of this, so I just try some things randomly ^^'):

I didn't fully tested the code, so please give feedback. I wanna know if this can be fixed. I will try tommorow to do something with this, but this seems hard, as I don't understand almost anything from it.

Edit:
Seems like it's hitting only one Davis all the time, no matter (im almost sure it's not even Davis, but Player 3..). :/
So my question is how to make it working at least ID-depended, cause I think I'm stuck with this and have no idea what to do now.
Edit:
Updated the code, yay. Managed to fix bugs, but still it affects only Player 3 (that's because in ebx is stored information about player number).
Edit:
Improved the code a bit. This basically affects all characters, causing them to lose HP equal to 33% of their damage. This works fine, but spells doesn't affect anything now, and that's the only thing left I want to improve. Some advices would be really appreciated.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)