I have this very simple script that makes an enemy just shoot two fireballs at Link per second, but I have a few questions. Version is 2.55.8.
This was done using Autoghost, but I've read there was supposed to be a new way to script custom enemy moves and attacks by using npc and eweapon scripts.
Is that necessarily easier than ghost.zh?
If I did it that way, does that mean I cannot use Ghost_X or Ghost_Y values that determine enemy positions (in the script code that is)? In other words, would the code look vastly different?
ffc script OctorockSpecial
{
void run(int enemyID)
{
eweapon fireball;
npc ghost = Ghost_InitAutoGhost(this, enemyID);
while (true)
{
fireball = FireAimedEWeapon(EW_FIREBALL, Ghost_X, Ghost_Y, 0, 200, ghost->WeaponDamage, -1, -1, EWF_UNBLOCKABLE);
Ghost_Waitframes(this, ghost, true, true, 30);
}
}
}
Edited by TLOZace5000, 28 February 2026 - 12:38 AM.

