While trying to make a custom Zora type monster I noticed that CanPlace() always returns invalid if you try check the combos in either the right or bottom corners of the screen. The custom Zoras worked as intended aside from utterly refusing to emerge from either of those corners.
For now setting the Can Walk Through Screen Edge flag seems to bypass the issue, but that is just a work around.
For reference here is a simplified version of the script I'm using to teleport the Zora's around. It functions through an Until check:
bool TeleportCheck(npc n, int TerrianFlag = SPW_NONE)
{
//Find a valid spot to place an enemy.
n->X = (Rand(16) * 16);
n->Y = (Rand(11) * 16);
return n->CanPlace(n->X, n->Y, TerrianFlag, false, -1, -1);
}
Unless the Can Walk Though Edge flag is set any result of 15 for X or 10 for Y comes back false even if it is a tile the Zora should be allowed appear on. The left and top corners work fine even without the flag set. The custom Zoras are the normal 16x16 pixel size.
I'm using version 255.12
Edited by MObreck, 04 March 2026 - 06:16 AM.

