Is this event done right?

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMV
What i am trying to achieve is for the screen or mouse to be press, after the press the player would be transferred to map location. All while erasing the picture and hiding the button created using Galvs Screen buttons.
The issue is that i can get the button i created to show along with image but i cannot seem to get the button press to work and perform what is below the if statement on it.
Can anyone help me spot what I am doing wrong?


2020-07-03 01_09_22-Window.png
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,809
Reaction score
5,363
First Language
English
Primarily Uses
RMVXA
Generally when I have an issue like this I like to narrow down which part isn't working by checking one Conditional Branch at a time, separating each part into its own non-nested branch and making sure each part is running correctly (or not) by placing a message box or sound effect command inside its branch. If I have a complex condition, I also like to try to separate that condition into two or more separate non-nested branches.

Immediately suspicious to me are your check for "If: $gameScreen.picture(1)", which I think just checks for... the existence of that picture, or maybe just always returns true?, and your use of "addButton" as part of an If-Branch's condition (is there some more appropriate method, like buttonPressed or clickButton?). But I'm not familiar this plugin, so it's at least possible your scripted conditions are correct.

Even more suspicious, though, is the fact that you have 4 different pages in this event, and this is Page 1. While any of the other pages' conditions are met, this event body will never be run - and therefore all of these checks that you're displaying will actually be ignored.
 

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMV
Ah yes, those pages will become active after a switch is flipped on next map that the player will be at. All based on the results of that map. That's why it's 4 pages and you are correct. The $gameScreen.picture(1) is just to check if such picture is being showed. This way the condition below can become active. Otherwise it wouldn't show the image button at all.
I have tried separating the Branches but honestly, im still at a loss.
Button press still won't active what's below the if statement.
I've checked the script several times and it's correct.

This one has been tricky for me haha

Edit*
Found a better solution to using Galvs screen buttons.
Much easier to use. If anyone is interested in knowing. Let me know in pm.

Can a moderator close this please
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts


When you thought you'd be finished with the grid, and spend ~8-9 hours on an arrow. How is this more difficult to than player movement?

Still some bugs hiding in there, but it's nearly complete.

I'm having it strictly follow the path a user draws, because there will be booby trap and other similar mechanics where you want to avoid specific cells.
I feel like banging my head against a wall every time I want to find that post that shows all the plugin header codes. Then I think "next time I find it, I'm going to bookmark it". Then I think "wait a minute ... maybe I bookmarked it last time because it took me so long to find it". Check bookmarks, and there it is :)
... a few of my main characters standing around doing nothing lol. I mostly wanted to see them together on screen.

Forum statistics

Threads
107,822
Messages
1,032,437
Members
139,971
Latest member
baroncorrz
Top