Jump to content

Photo

Block arrow from enemy combo


  • Please log in to reply
7 replies to this topic

#1 TheRock

TheRock

    Go glitches

  • Members
  • Gender:Male

Posted 29 November 2019 - 02:31 PM

I would like to request a script that does this: When the weapon type Arrow is shot out when it hits this combo then the Arrow is destroyed just like the block all combo type. No idea why the block all combo type doesn't block it in the first place but oh well. Script is for ZC version 2.53. Thanks is advance! 



#2 P-Tux7

P-Tux7

    Senior

  • Members

Posted 29 November 2019 - 10:40 PM

That's bizarre, in this quest I set the princess picture to block all (as seen on the starting screen) and it blocks arrows.

https://cdn.discorda...ockallarrow.qst

Does it act the same when you try out this quest?



#3 TheRock

TheRock

    Go glitches

  • Members
  • Gender:Male

Posted 30 November 2019 - 01:34 AM

That's bizarre, in this quest I set the princess picture to block all (as seen on the starting screen) and it blocks arrows.

https://cdn.discorda...ockallarrow.qst

Does it act the same when you try out this quest?

I was referring to the arrows that enemies shoot. Like the ones the Moblins shoot.



#4 P-Tux7

P-Tux7

    Senior

  • Members

Posted 30 November 2019 - 05:16 PM

I was referring to the arrows that enemies shoot. Like the ones the Moblins shoot.

Do Block All combo types block ANY enemy weapon except for Octorok rocks?



#5 TheRock

TheRock

    Go glitches

  • Members
  • Gender:Male

Posted 30 November 2019 - 06:15 PM

Do Block All combo types block ANY enemy weapon except for Octorok rocks?

Block all combo pretty much blocks everything, except the arrows from enemies. I only need it to block the arrow from a enemy.



#6 Gégé

Gégé

    Senior

  • Members
  • Real Name:Gérard
  • Gender:Male
  • Location:France

Posted 04 December 2019 - 01:59 PM

void BlockShooter(){
    for(int i=1;i<= Screen->NumEWeapons();i++){
        eweapon wpn = Screen->LoadEWeapon(i);
        if(EW_id(wpn)){
            if(Screen->isSolid(wpn->x+8, wpn->y+8)wpn->DeadState = WDS_DEAD;
        }
    }
}
bool EW_id(eweapon wpn){
    if(wpn->ID == EW_FIREBALL)return true;
    if(wpn->ID == EW_ARROW)return true;
    if(wpn->ID == EW_BRANG)return true;
    if(wpn->ID == EW_BEAM)return true;
    if(wpn->ID == EW_MAGIC)return true;
    return false;
}
Put BlockShooter(); in global script, edit "true or false" for exceptions in EW_id (true = block, false = ignore)
Blocks enemies weapon if collision with solid combo

Edited by Gégé, 04 December 2019 - 02:05 PM.

  • TheRock and Lüt like this

#7 TheRock

TheRock

    Go glitches

  • Members
  • Gender:Male

Posted 04 December 2019 - 05:26 PM

Thank you Gege!



#8 P-Tux7

P-Tux7

    Senior

  • Members

Posted 04 December 2019 - 05:48 PM

I'd like to mention that this issue also applies to Flame/Flame2, Rock, and Lit Bomb/Super Bomb which are not blocked/exploded by Block All. I have already reported this issue on the ZC dev server.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users