Jump to content

Photo

Enemies which are ignored


  • Please log in to reply
2 replies to this topic

#1 klop422

klop422

    Guess I'm full of monsters and treasure

  • Members
  • Real Name:Not George
  • Location:Planet Earth

Posted 17 September 2017 - 11:26 AM

How does one make an enemy which link completely ignores when he walks through it (i.e. does no damage, has no knockback, etc.)?



#2 Anthus

Anthus

    Lord of Liquids

  • Members
  • Location:Ohio

Posted 17 September 2017 - 12:49 PM

Use a ffc? I think any enemy npc type has knockback no matter what. :/

#3 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 18 September 2017 - 05:43 AM

ffc script IgnoreNPC{
    void run (int npc_id){
        while(true){
            for ( int q = Screen->NumNPCs(); q > 0; q-- ) {
                npc n = Screen->LoadNPC(q);
                if ( n->ID == npc_id ) {
                    n->HitYOffset = -32768;
                    continue;
                }
            }
            Waitframe();
        }
    }
}

Put that on the screen in question, and assign D0 to the ID of the enemy that you wish to ignore. The script moves its hitbox off-screen.


Edited by ZoriaRPG, 18 September 2017 - 05:46 AM.

  • ShadowTiger and Anthus like this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users