Hello,
Is there no parameter provided by the library to make an NPC untouchable?
class GhostEvent extends RpgEvent {
isMonster = true
}
Then, if you retrieve the event from the map, you'll know whether it's a monster or not.
// You can retrieve the event in a hook beforehand
if (event.isMonster) {
event.hp -= 100
}
Wouldn't it be more convenient to divide it into different folders: NPCs, monsters, and events?
You can:
- events
- monsters
- npcs
- misc
You are free to structure the events to suit your project