>>35654751Need help with an emerald script in XSE. There's an npc in pacifidlog town who can tell you if mirage island is visible for the day but there's a very low chance of that happening thanks to rng. I'm trying to make it so that speaking to him will "activate" the event and cause mirage island to appear.
This is the vanilla emerald script used for the old man in pacifidlog:
'---------------
#org 0x204111
lock
faceplayer
special2 LASTRESULT 0xD4
compare LASTRESULT 0x1
if 0x1 goto 0x820412D
msgbox 0x8204140 MSG_KEEPOPEN '"I can't see MIRAGE ISLAND today[.]"
release
end
'---------------
#org 0x20412D
msgbox 0x8204161 MSG_KEEPOPEN '"Oh! Oh my!\nI can see MIRAGE ISLAN..."
release
end
'---------------