Jump to content

Photo

Abei Request (FFC)


  • Please log in to reply
5 replies to this topic

#1 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 20 March 2016 - 10:43 AM

Is there a way to spawn an "Abei"? Basically a non-moving enemy that acts like he's damaged when you strike him with the sword (flickers w/hurt sound), but is impossible to kill. I thought there might be a way to create one using the enemy editor (maybe?), the problem with the enemy editor is that I don't see any way to turn off Link's recoil on touching an enemy.

 

As a separate question, is there any way to turn off Link's recoil for certain enemies so Link can just walk through them?


Edited by Cukeman, 20 March 2016 - 03:32 PM.

  • Naru likes this

#2 Mani Kanina

Mani Kanina

    Rabbits!

  • Members

Posted 20 March 2016 - 12:36 PM

If you add a "guy" to the screen via the regular way, yes. Otherwise you'd have to script it. There might be an NPC script in the database that has that functionality, IDK, but there is no way to spawn an enemy like that via the enemy editor.

#3 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 20 March 2016 - 02:00 PM

i'm sure you know, but with the regular way you have to walk two combos into the room and can't place the guy



#4 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 01 April 2016 - 12:10 AM

How about just a way to make a regular enemy have infinite health?

I think I can figure out the rest



#5 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 01 April 2016 - 12:20 AM

ffc script AbeiUndying
{
	void run()
	{
		Waitframes(4);
		npc abei = Screen->LoadNPC(1);
		while (true)
		{
			abei->HP = 32767;
			Waitframe();
		}
	}
}
You'll still get knocked back by this Abei. The problem with your original idea is that an enemy's collision property handles both its ability to hurt you and your ability to hurt it. The simplest workaround I can think of is to place a solid combo on top of the enemy's spawn point, then shrink its hitbox a bit to ensure the player can never run into it (but can still swipe at it with weapons).

#6 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 01 April 2016 - 12:21 AM

EDIT: Request fulfilled:

ffc script CreateEndlessHPEnemy{
void run(int enemyID, int enemyX, int enemyY, int trigger_secrets){
npc enemy = CreateNPCAt(enemyID, enemyX, enemyY);
        enemy->HP = 32767;
        while (true)
        {
            if (enemy->HP < 32767 && trigger_secrets != 0){
                Screen->TriggerSecrets();
                Game->PlaySound(SFX_SECRET);
                trigger_secrets = 0;
            }
            enemy->HP = 32767;
            Waitframe();
        }
}
}

Edited by Cukeman, 15 April 2016 - 06:36 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users