This NPC script would be versatile due to the amount of Enemy Editor options for weaknesses, but also my ideas for whether one can harm the head, segments, or core, or combining the three booleans. It also has two movement styles for more versatility.
Graphics
8-dir (Movement Direction) 4-frame head
4-frame chain/segment
8-dir (Faces Link) 4-frame Core
8-dir (Faces Link) 4-frame Peeking Eyes (Pincer only)
Options and Details:
1. Movement Style (Pincer or Chain Chomp) (Boolean) - This determines if it rests on its combo and then lunges out like a Pincer, or if it casually hops around like a Chain Chomp before lunging. Pincers are invincible until they lunge and are exposed, but Chomps are always vulnerable. Pincers also have the "eye blink" animation before lunging, while Chomps briefly halt before lunging.
2. How many segments (Integer) How many segments, minus the head, there are. For example, Chain Chomps have 5 segments and Pincers have three. This also determines how far the Pincer or Chomp enemy can reach off of its center, and for Chomps how far away from its post it can bounce.
3. 8-Way or 360 (Boolean) - Chooses whether or not the enemy's movement is constrained to 8 directions, or if it can lunge at you the full 360. Note that Chomps, when hopping, will use 8-way movement either way - the 360 will only affect their lunge. The head also always uses 8-way animation.
4. Head is Vulnerable (Boolean) - 0 for Chomp, 1 for Pincer
5. Segments are Vulnerable (Boolean) - Enable this to have hitting the segments hurt the monster, a la Z1 Moldorm.
6. Core Is Vulnerable (Boolean) - If 1, this will cause attacks to the core to damage the monster. For instance, if you set the Chain Chomp on top of a hammer combo, pounding the post will both change the standard combo and instantly kill it. This allows for both Chain Chomps being defeated by hammering their post (a common Mario occurence), or reskin the Pincer/Chomp to a Boss Moldorm with invincible head and segments but a vulnerable tail. Note that the core is ALWAYS invulnerable while the head is in contact with it, to prevent one from hitting the core while the Pincer is "inside its hole" or displaying the "Peeking Eyes" animation.
Note that once non-harmful NPCs are implemented within ZC, this will also serve as a Bow Wow friendly NPC (how he acts after he is tied to the post and you lose his companionship).