Code:
if(get NPC ID(NPC at spot(x tile, y tile)) == 1) then(
write zone (22, x tile, y tile)
)
if(get NPC ID(NPC at spot(x tile, y tile)) == 1) then(
write zone (22, x tile, y tile)
)
Right now I have a loop that places zone #22 wherever NPC ID #1 is and if NPC #1 is not there then it erases the zone. The only problem is I have some non-obstruct NPCs that wander the map and anytime they occupy the same space as NPC #1 it causes zone #22 not to be written to NPC #1. Is there a way I can account for this? Keeping in mind there could be scenarios where up to 3 NPCs occupy the same space.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases



