ScriptName FGEnterMessageBox extends ObjectReferenceActor Property PlayerREF AutoEvent OnTriggerEnter(ObjectReference akActionRef) If akActionRef == Game.GetPlayer() Debug.MessageBox("You push through to the other side of the wardrobe, and, much to your surprise, arrive in a dark and humid cave..") EndIf EndEvent
I've tested it, and this works correctly.
However, if you keep walking on that trigger, it'll just keep opening up. Obviously I only want it to appear when you first enter the cell, and only appear again when you enter the cell again and land on the trigger. Is there any way that I can get it to only trigger once and then reset when the player leaves the cell?