How do I check if there is already an npc on the map using plotscripting?

From OHRRPGCE-Wiki

Jump to: navigation, search

You can do this using the NPC copy count command

if(npc copy count(4) >= 1) then, begin
 # things that only happen if there is at least one copy of NPC ID 4 on the map
else
 # things that happen if there are no copies of NPC ID 4 on the map
end

[edit] See Also

Personal tools