Sorry if this is in wrong area, not really sure what this falls into, gathered it wouldn't be plugin help.
So, anyone know whats wrong with this event code? or what it's missing..? NOOB eventer here so
I totally winged that code below by trial and error by re-purposing the mobile phone menu code, but now i'm stuck.
The Issue: When I try to press on a monster button I have to press a few times before it loads up any of that buttons actions, like its having some sort of delayed reaction to button presses. Short of that, everything else works with it.
This is what it looks like running in game.
Any clue guys?
Thanks in advance 😀
So, anyone know whats wrong with this event code? or what it's missing..? NOOB eventer here so
I totally winged that code below by trial and error by re-purposing the mobile phone menu code, but now i'm stuck.
The Issue: When I try to press on a monster button I have to press a few times before it loads up any of that buttons actions, like its having some sort of delayed reaction to button presses. Short of that, everything else works with it.
◆Play SE:Book1 (100, 100, 0)
◆Control Switches:#0032 MENU-BESTIARY = ON
◆If:MENU-BESTIARY is ON
◆Show Picture:#1, MimobBestiaryBG, Upper Left (-72,-8), (43%,45%), 255, Normal
◆Show Picture:#11, Bestiary-HillHornetIcon2, Upper Left (65,153), (62%,65%), 255, Normal
◆Show Picture:#12, Bestiary-ShroomIcon2, Upper Left (105,153), (62%,65%), 255, Normal
◆Show Picture:#13, Bestiary-HillHornetIcon2, Upper Left (147,153), (62%,65%), 255, Normal
◆Show Picture:#14, Bestiary-HillHornetIcon2, Upper Left (186,153), (62%,65%), 255, Normal
◆Wait:10 frames
◆Control Variables:#0012 MENU-BestiaryBtnSelect = 1
◆Loop
◆Comment:Keep player from moving whilst menu is open
◆Set Movement Route:Player
: :◇Wait:5 frames
◆Comment:Change variable based on button pressed
◆If:Button
is being pressed
◆Control Variables:#0012 MENU-BestiaryBtnSelect -= 1
◆Play SE:Cursor3 (90, 100, 0)
◆Wait:7 frames
◆
:End
◆If:Button
◆Control Switches:#0032 MENU-BESTIARY = ON
◆If:MENU-BESTIARY is ON
◆Show Picture:#1, MimobBestiaryBG, Upper Left (-72,-8), (43%,45%), 255, Normal
◆Show Picture:#11, Bestiary-HillHornetIcon2, Upper Left (65,153), (62%,65%), 255, Normal
◆Show Picture:#12, Bestiary-ShroomIcon2, Upper Left (105,153), (62%,65%), 255, Normal
◆Show Picture:#13, Bestiary-HillHornetIcon2, Upper Left (147,153), (62%,65%), 255, Normal
◆Show Picture:#14, Bestiary-HillHornetIcon2, Upper Left (186,153), (62%,65%), 255, Normal
◆Wait:10 frames
◆Control Variables:#0012 MENU-BestiaryBtnSelect = 1
◆Loop
◆Comment:Keep player from moving whilst menu is open
◆Set Movement Route:Player
: :◇Wait:5 frames
◆Comment:Change variable based on button pressed
◆If:Button
is being pressed
◆Control Variables:#0012 MENU-BestiaryBtnSelect -= 1
◆Play SE:Cursor3 (90, 100, 0)
◆Wait:7 frames
◆
:End
◆If:Button
is being pressed
◆Control Variables:#0012 MENU-BestiaryBtnSelect += 1
◆Play SE:Cursor3 (90, 100, 0)
◆Wait:7 frames
◆
:End
◆If:MENU-BestiaryBtnSelect = 0
◆Control Variables:#0012 MENU-BestiaryBtnSelect = 4
◆
:End
◆If:MENU-BestiaryBtnSelect = 5
◆Control Variables:#0012 MENU-BestiaryBtnSelect = 1
◆
:End
◆Comment:Change highlighted picture
◆Show Picture:#11, Bestiary-HillHornetIcon2, Upper Left (65,153), (62%,65%), 255, Normal
◆Show Picture:#12, Bestiary-ShroomIcon2, Upper Left (105,153), (62%,65%), 255, Normal
◆Show Picture:#13, Bestiary-HillHornetIcon2, Upper Left (147,153), (62%,65%), 255, Normal
◆Show Picture:#14, Bestiary-HillHornetIcon2, Upper Left (186,153), (62%,65%), 255, Normal
◆If:MENU-BestiaryBtnSelect = 1
◆Show Picture:#11, Bestiary-HillHornetIcon1, Upper Left (65,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆If:MENU-BestiaryBtnSelect = 2
◆Show Picture:#12, Bestiary-ShroomIcon1, Upper Left (105,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆If:MENU-BestiaryBtnSelect = 3
◆Show Picture:#13, Bestiary-HillHornetIcon1, Upper Left (147,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆If:MENU-BestiaryBtnSelect = 4
◆Show Picture:#14, Bestiary-HillHornetIcon1, Upper Left (186,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆Comment:Branches for 'Ok' & 'Cancel' button presses.
: :What happnes when these buttons are pressed.
◆If:Button [OK] is being triggered
◆If:MENU-BestiaryBtnSelect = 1
◆Play SE:Decision3 (90, 100, 0)
◆Show Picture:#2, Bestiary-HillHornet, Upper Left (456,144), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = \c[17]Hill Hornet\c[0]
◆Show Picture:#3, None, Upper Left (160,115), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = Hill of Destiny
◆Show Picture:#4, None, Upper Left (80,465), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = HP: ??? / SP: ??? / MP: ??? STR: ??? / DEF: ??? / A…
◆Show Picture:#5, None, Upper Left (444,104), (70%,70%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = \c[12]Stinger\c[0]
◆Show Picture:#6, None, Upper Left (450,464), (100%,100%), 255, Normal
◆
:End
◆If:MENU-BestiaryBtnSelect = 2
◆Play SE:Decision3 (90, 100, 0)
◆Show Picture:#2, Bestiary-Shroom, Upper Left (457,139), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = Shroom
◆Show Picture:#3, None, Upper Left (170,115), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = Forestia Woods (East)
◆Show Picture:#4, None, Upper Left (80,465), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = HP: ??? / SP: ??? / MP: ??? STR: ??? / DEF: ??? / A…
◆Show Picture:#5, None, Upper Left (444,104), (70%,70%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = ???
◆Show Picture:#6, None, Upper Left (450,464), (100%,100%), 255, Normal
◆
:End
◆If:MENU-BestiaryBtnSelect = 3
◆Play SE:Decision3 (90, 100, 0)
◆
:End
◆If:MENU-BestiaryBtnSelect = 4
◆Play SE:Decision3 (90, 100, 0)
◆
:End
◆
:End
◆If:Button [Cancel] is being triggered
◆Play SE:Decision4 (90, 100, 0)
◆Erase Picture:#1
◆Erase Picture:#2
◆Erase Picture:#3
◆Erase Picture:#11
◆Erase Picture:#12
◆Erase Picture:#13
◆Erase Picture:#14
◆Break Loop
◆
:End
◆Wait:2 frames
◆
:Repeat Above
◆Wait:5 frames
◆
:End
◆Control Variables:#0012 MENU-BestiaryBtnSelect += 1
◆Play SE:Cursor3 (90, 100, 0)
◆Wait:7 frames
◆
:End
◆If:MENU-BestiaryBtnSelect = 0
◆Control Variables:#0012 MENU-BestiaryBtnSelect = 4
◆
:End
◆If:MENU-BestiaryBtnSelect = 5
◆Control Variables:#0012 MENU-BestiaryBtnSelect = 1
◆
:End
◆Comment:Change highlighted picture
◆Show Picture:#11, Bestiary-HillHornetIcon2, Upper Left (65,153), (62%,65%), 255, Normal
◆Show Picture:#12, Bestiary-ShroomIcon2, Upper Left (105,153), (62%,65%), 255, Normal
◆Show Picture:#13, Bestiary-HillHornetIcon2, Upper Left (147,153), (62%,65%), 255, Normal
◆Show Picture:#14, Bestiary-HillHornetIcon2, Upper Left (186,153), (62%,65%), 255, Normal
◆If:MENU-BestiaryBtnSelect = 1
◆Show Picture:#11, Bestiary-HillHornetIcon1, Upper Left (65,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆If:MENU-BestiaryBtnSelect = 2
◆Show Picture:#12, Bestiary-ShroomIcon1, Upper Left (105,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆If:MENU-BestiaryBtnSelect = 3
◆Show Picture:#13, Bestiary-HillHornetIcon1, Upper Left (147,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆If:MENU-BestiaryBtnSelect = 4
◆Show Picture:#14, Bestiary-HillHornetIcon1, Upper Left (186,153), (62%,65%), 255, Normal
◆Wait:1 frame
◆
:End
◆Comment:Branches for 'Ok' & 'Cancel' button presses.
: :What happnes when these buttons are pressed.
◆If:Button [OK] is being triggered
◆If:MENU-BestiaryBtnSelect = 1
◆Play SE:Decision3 (90, 100, 0)
◆Show Picture:#2, Bestiary-HillHornet, Upper Left (456,144), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = \c[17]Hill Hornet\c[0]
◆Show Picture:#3, None, Upper Left (160,115), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = Hill of Destiny
◆Show Picture:#4, None, Upper Left (80,465), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = HP: ??? / SP: ??? / MP: ??? STR: ??? / DEF: ??? / A…
◆Show Picture:#5, None, Upper Left (444,104), (70%,70%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = \c[12]Stinger\c[0]
◆Show Picture:#6, None, Upper Left (450,464), (100%,100%), 255, Normal
◆
:End
◆If:MENU-BestiaryBtnSelect = 2
◆Play SE:Decision3 (90, 100, 0)
◆Show Picture:#2, Bestiary-Shroom, Upper Left (457,139), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = Shroom
◆Show Picture:#3, None, Upper Left (170,115), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = Forestia Woods (East)
◆Show Picture:#4, None, Upper Left (80,465), (100%,100%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = HP: ??? / SP: ??? / MP: ??? STR: ??? / DEF: ??? / A…
◆Show Picture:#5, None, Upper Left (444,104), (70%,70%), 255, Normal
◆Plugin Command:TextPicture, Set Text Picture
: :Text = ???
◆Show Picture:#6, None, Upper Left (450,464), (100%,100%), 255, Normal
◆
:End
◆If:MENU-BestiaryBtnSelect = 3
◆Play SE:Decision3 (90, 100, 0)
◆
:End
◆If:MENU-BestiaryBtnSelect = 4
◆Play SE:Decision3 (90, 100, 0)
◆
:End
◆
:End
◆If:Button [Cancel] is being triggered
◆Play SE:Decision4 (90, 100, 0)
◆Erase Picture:#1
◆Erase Picture:#2
◆Erase Picture:#3
◆Erase Picture:#11
◆Erase Picture:#12
◆Erase Picture:#13
◆Erase Picture:#14
◆Break Loop
◆
:End
◆Wait:2 frames
◆
:Repeat Above
◆Wait:5 frames
◆
:End
This is what it looks like running in game.
Any clue guys?
Thanks in advance 😀