How to make an attack unblockable

Aerisetta

Active member
How do I make a particular attack unblockable?

I changed the block value and didnt seem to do anything

attack{#} {x} {y} {right} {down} {damage} {power} {block} {noflash} {pausetime} {z}

There are two ways to set an attack box, since build 4183:
the old method, with multiple parameters on the same line (above) and the new method, where all the parameters were broken in several lines, which makes easier to read.

  • An attack box which can hit bboxes
  • OpenBoR supports 10 different attack boxes by default and {#} determines which one the frame is using. There’s no space between ‘attack’ and {#} though.
  • You can only have one type of attack box per frame (that is, you can’t have two attack boxes or an attack and an attack4 box in the same frame). You can ‘fake’ an extra box or two by adding in extra frames with different boxes and changing the delay accordingly, but this takes up more memory (for the extra frames) and doesn’t work perfectly, so try to do so sparingly.
  • {x}, {y}, {right}, and {down} work exactly like in a bbox.
  • {damage} determines how much damage the attack does. Setting it to 0 also works. Great for making launchers, slams and paralyze attacks.
  • {power} is an integer value that determines how strong the knockdown effect of this attack. 0 means no knockdown, 1 means knockdown level 1, etc. This is used in conjunction with ‘knockdowncount’ (see above).
  • {block} is a binary value which determines if an attack is unblockable.
 
It does not damage, it's just to force the enemy into pain98

Code:
name    Bomb
type    none
shadow    0
toflip    1
alpha    1
subject_to_gravity 0
lifespan    1
candamage    enemy


anim    idle
    delay    1
    offset    25 100
    hitfx    data/sounds/empty.wav
    frame    data/chars/misc/empty.gif
    attack98 -2000 0 5000 2000 0 0 1 1 0 1000
    frame    data/chars/misc/empty.gif
    attack98 0 0 0 0 0 0 0 0 0 0
    frame    data/chars/misc/empty.gif
    attack98 -2000 0 5000 2000 0 0 0 1 0 1000
    frame    data/chars/misc/empty.gif
    attack98 0 0 0 0 0 0 0 0 0 0
    frame    data/chars/misc/empty.gif
 
the first attackbox inside the animation might not be connecting maybe slow the delay, also the second attackbox is attack98 -2000 0 5000 2000 0 0 0 1 0 1000 which is blockable.
 
Back
Top Bottom