I'm working on a stealth game where the player has to move across the map without getting caught by NPCs. I'm using Yanfly's Event Chase Player plugin for this, and it's working great. But I'm also trying to make it so that the NPC's exclaim something like "Halt!" or "Who goes there?!" when they spot the player. I used the this._alertCommonEvent inside the NPC's move route to call a common event that utilizes the /autoevent[x] tag from Yanfly's Extended Message Pack 1, so that the NPC's exclamation appears in only a small window just above the NPC.
My problem is that the /autoevent[x] tag requires Event ID. I've tried putting Control Variables: #0001 = this._eventId at the start of the common event, but the window just keeps appearing above the player instead of any of the NPCs. I also tried using this script line in the common event:
$gameVariables.setValue(1, $dataMap.events[this._eventId].id);
But the window still just keeps appearing above the player. I don't know what I'm doing wrong, and I'd greatly appreciate any help I can get. Thanks.
My problem is that the /autoevent[x] tag requires Event ID. I've tried putting Control Variables: #0001 = this._eventId at the start of the common event, but the window just keeps appearing above the player instead of any of the NPCs. I also tried using this script line in the common event:
$gameVariables.setValue(1, $dataMap.events[this._eventId].id);
But the window still just keeps appearing above the player. I don't know what I'm doing wrong, and I'd greatly appreciate any help I can get. Thanks.