I need to create a global variable that I can use with all my NPC's. For example, I would have a global variable named 'Seen'. If an NPC see's the player and Seen equals false then it would attack and Seen would be changed to true. If Seen equals true the NPC would ignore the player. How and where would I create this variable, and how would I reference it?
Using Noppes custom NPC scripting, I need to write a function where I teleport myself to another location when an NPC collides with me. How would I do this?