No, no need to apologize. You are doing great. We are happy to have you in the community.
As you can tell from my prior post, I also am not perfect at communication either. My apologies as well.
This is also a good situation to force me to be better for the community. Thank you. Benefit is a two way street.
Any following questions are not for judgement or mockery. They are honest inquiry to which provide greater aid in a more clear fashion. It is to know where to start or how to explain it accurately to suit your personal needs for your project. I believe you are not actually a beginner, perhaps. At least, your original post leans you to understand potentially more than a new beginner.
My post was... worded quite poorly.
My solution, which is only one possible way to attain your result, is not the only or best. There are other potential routes to execute what you want as an end result. This is what I know. It may seem a bit crude. I am not 'advanced' at all. I generally use the base engine for the most part.
Turin's solution utilizes plugins. That is a good option to investigate as well.
Plugins often do the heavy lifting by outsourcing the code that you otherwise would need to program yourself with more effort. It is similar to think of it like using a calculator for math instead of only using pen an paper. It makes situations more expedient. You do need to know how to operate the calculator properly or you will not get an accurate result that you are expecting.
(by the way, your artistic drawling is fantastic. I love it. It is also very clear)
What it appears you are seeking is:
1. The player chooses to active the 'study' event
-this activates the 'study' switch
2. The 'study action' enables the player character to 'learn' increasing the variable.
3. The variable for Intelligence
continues increasing over time (as solved/depicted in the second post above by Turin)
until the player chooses to halt the progress. (loop)
4. Player halts progress: variable is paused / stagnant ...in example: does not gain increase in variable until reengaged.
Yes?
I understand your full intent?
-----------------------------
Spoiler
booting up my RPmaker and testing so I can explain properly without wasting your time leading you wrong. This is to your benefit. Sometimes I remember button names wrong when, not looking at it. I don't want to do that to you.
Will take some time.
Just wanted to you to know that you are not ignored / abandoned / etc.
Sorry I am not quicker.
I will update this here when I have more aid to provide.
If any other forum member wants to beat me to the solution, you will not step on my toes. The important part is to offer OP aid.
ok. (thumbs up) it worked.
Spoiler: Synopsis of example
What I did:
I created the switch event, activated when player touches + below character
Switch turns on or off "Study" action via dialogue choice. You can alter how the switch is activated. (This was just what I chose for this example.)
This is in front of the 'study' desk.
I placed a book on the desk there for visual effect. Book opens and closes based on if switch is on or off. That is all book event does. It is cosmetic. I wanted a visual confirmation for myself to see when the switch was on or off.
The Variable loop event is in the upper left. You can put it wherever you want. I chose this, it was out of the way. It is parallel, so player interaction by walking should not change it. This is the "Study" action for the variable.
The scrolls on the back wall was so I had something I could confirm variable increasing. It is a simple text to display the variable quotient.
Spoiler: Variable Loop
you may not need the ELSE part. I threw that in just in case. I did not test to see if it works without the ELSE.
Spoiler: This is the on / off switch for "study"
Spoiler: This is the on / off switch for "study" PAGE 2
Quit Study? Yes/ No
Take note of "
self switch A", this is important
Spoiler: Check Int Variable
Spoiler: Check Int before
Spoiler: Check Int after some time studying
There are some oversights with this.
This was quick creation and not a polished result.
Spoiler: Obvious flaws with this (fast) example
1. While 'studying' player is able to still move around the map.
- This could be solved in a number of ways.
One way is to increase events around that square that will turn off study automatically just by moving away from the book.
You also could look into inserting a command line in the switch event that restricts player movement when the switch is on.
I forget where to find it in the menu, at the moment.
2. (designed as is, and quickly only to be example of concept) To 'end' study you have to reinitiate touching the square the player is on and then choosing to 'end' study. This is poor flaw. It is not natural for the player to potentially choose to follow through without prompting to 'turn off'.
Again, many ways to correct this.
- One way is to have the interaction (page 2) be action button + same as player and keep transferring the player back to the book if they do not choose to end study.
3. Also, this does not display a status bar for the progress. My best guess is to seek a plugin that does On Map display. I personally have not used status bar displays in my projects.
- you could set up an additional sprite near by on the desk or something that changes the image every time when the variable increases. Maybe an hourglass spins around. This is of course necessarily not a nice, clearly visible reading like a progress bar... so it is not an optimal choice, if you are looking to duplicate your drawing above accurately.
However, you could use sprites of number integers instead if desperate. That could be clear and obvious for progress.
- this would require a variable check to match the variable number so your graphic is accurate to what the count is on the variable.
Your choice, you probably can find a better visual solution.
Clarification: Flaws are because of how I told the engine to do things. It is not engine's fault. Engine will only do what it is told. There are many amazing things RM engine is capable.
If you inquire about the Yanfly Plugins, mentioned above, in the
Javascript/Plugin Support thread area you will probably get a better answer for those than I can provide. At the moment, I can only build 'casual' petal bicycles with my skill. There are people here who are quite capable with their use of the RM game engine and keeping with the metaphor comparison can build Lamborghini quality vehicles. Apologies for my crude solution. I do hope that it does help you understand some of what you had inquired and cleared up the confusion which I may have unintentionally thrust upon you in my previous, initial post.
Again, the example above is not the best way to achieve your goal. One way, sure... but likely not the most optimal.
This is at least what I tired to explain in phrase earlier.
Apologies again for poor communication.
Lindy
** EDIT: Looking at your diagram again....
Do you want the ability for the player to press a key (on the keyboard, for instance) to 'study' and as long as that key stroke is depressed, the variable will increase over time?
Once the Player stops pressing down on the key (physically releases the key), the 'learning' halts.
Is this what you intend instead for your project?
If so, I think this is exactly what Turin was describing as possible with the RMMV engine + "Yanfly's Button Common Events" plugin.
To do the 'progress bar display' (concept portion), you would need a plugin for that execution feature. I am unsure if you can do it with the base engine easier.