- 18
- Posts
- 2
- Years
- Seen Nov 9, 2023
Hello
I am trying to make an npc both give the aurora ticket key item and also enable the event. the code ive written is as follows.
'---------------
#org 0xE40F40
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x8E40B15
msgbox 0x8E40B20 0x6 '"Sigh you leave us no choice kid.\n..."
giveitem 0x172 0x1 0x0
setflag 0x8E0
setflag 0x1201
release
end
'---------------
#org 0xE40B15
msgbox 0x8E40B76 0x6 '"The fate of Shoal cave depends on\..."
release
end
'---------
' Strings
'---------
#org 0xE40B20
= Sigh you leave us no choice kid.\nUse this item and calm the\llegendary monster down.
#org 0xE40B76
= The fate of Shoal cave depends on\nyou kid.
It only makes the npc tell you the last line. I am very new to rom hacking and i am making an event and a story about the shoal cave and Lugia/Ho-oH. I would appericiate a rewritten script as well as pointers.
I am trying to make an npc both give the aurora ticket key item and also enable the event. the code ive written is as follows.
'---------------
#org 0xE40F40
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x8E40B15
msgbox 0x8E40B20 0x6 '"Sigh you leave us no choice kid.\n..."
giveitem 0x172 0x1 0x0
setflag 0x8E0
setflag 0x1201
release
end
'---------------
#org 0xE40B15
msgbox 0x8E40B76 0x6 '"The fate of Shoal cave depends on\..."
release
end
'---------
' Strings
'---------
#org 0xE40B20
= Sigh you leave us no choice kid.\nUse this item and calm the\llegendary monster down.
#org 0xE40B76
= The fate of Shoal cave depends on\nyou kid.
It only makes the npc tell you the last line. I am very new to rom hacking and i am making an event and a story about the shoal cave and Lugia/Ho-oH. I would appericiate a rewritten script as well as pointers.