I was able to remove the message window arrow by using self.pause = false in the def update of the Window_Message game script. However, I don't really want it off all the time so is there a way to toggle it On/Off with a single script line in an event?
Toggle Message Window Arrow script line?
RPG Maker VXAce SupportAway from RGSS for some time but...
self.pause = $game_variables[1]
whenever you change the variable #1 to true or false, it's going to change the pause value.
self.pause = $game_variables[1]
whenever you change the variable #1 to true or false, it's going to change the pause value.
Hmm, tried it and I can get the variable to equal true by setting the variable to script "true", but if I then try and run
self.pause = $game_variables[1] I get an error message saying
'Game_Interpreter' line 1411: NoMethodError occurred.
undefined method 'pause=' for #<Game_interpreter:0xba01c8>
Any brackets or parenthesis I need to add for it to work?
self.pause = $game_variables[1] I get an error message saying
'Game_Interpreter' line 1411: NoMethodError occurred.
undefined method 'pause=' for #<Game_interpreter:0xba01c8>
Any brackets or parenthesis I need to add for it to work?
where did you put this code?
You should put it at the same place that you mentioned on your first post.
"in the def update of the Window_Message game script"
EDIT: sorry for the delay, I was not watching this thread
Code:
self.pause = $game_variables[1]
You should put it at the same place that you mentioned on your first post.
"in the def update of the Window_Message game script"
EDIT: sorry for the delay, I was not watching this thread
Ahh, I was just trying to use your script line in the event itself. I fixed it to be in the Windows_Message/Frame Update/def update section and if I put self.pause = false it will remove the arrow, but if I put self.pause = $game_variables[60] with variable 60 = to "false", it does not work to remove the message arrow anymore. Not sure what the problem is now...
oh that sux, but try this way then:
then you toggle it changing the variable value to 0 (zero) to turn off and to 1 to turn on
Code:
self.pause = $game_variables[60] > 0
then you toggle it changing the variable value to 0 (zero) to turn off and to 1 to turn on
Original thread: https://forums.rpgmakerweb.com/threads/toggle-message-window-arrow-script-line.76655/