Is there anyway to force the game to 'press' the action button?

I'm having a character talk really quickly and I want to run a script call to make the dialogue go by really quick by 'forcing' the game to think the player is clicking the action button really quickly.

I tried "$game_player.check_action_event"

But, that only works once, and won't work after that.

Basically I'm looking for a script call that forces the player to press the action button, and it can just always work even when in dialogue.
You can use special characters in the text box to skip the action button and go to the next dialogue on its own. If you time your message properly you should be able to get the effect you want. Just put your mouse in the message box and wait for the help to be displayed. Everything you need is there.
You can use special characters in the text box to skip the action button and go to the next dialogue on its own. If you time your message properly you should be able to get the effect you want. Just put your mouse in the message box and wait for the help to be displayed. Everything you need is there.
Oh cool thanks! So there is no script call for that then?

That sucks. I was thinking of using it somewhere else as well.

Okay thank you I will be sure to look at that! thanks 😀
If you mean skipping the text after being displayed, you can use code \^
If you mean skipping the text after x frame has passed but no input, you can use
Code:
class Window_Message
  FrameWait = 120
 
  def input_pause
    self.pause = true
    wait(10)
    FrameWait.times do
      Fiber.yield
      break if Input.trigger?(:B) || Input.trigger?(:C)
    end
    Input.update
    self.pause = false
  end
 
end
If you mean skipping the text after being displayed, you can use code \^
If you mean skipping the text after x frame has passed but no input, you can use
Code:
class Window_Message
  FrameWait = 120
 
  def input_pause
    self.pause = true
    wait(10)
    FrameWait.times do
      Fiber.yield
      break if Input.trigger?(:B) || Input.trigger?(:C)
    end
    Input.update
    self.pause = false
  end
 
end
Hmm.. Thanks I'll try that too. I was more looking for the code that would be called when the player presses the action button, just so I can use it at other places as well, but this will work for now. Thanks man.
I've tried both things and I haven't quite gotten what I would like.
All I need is whatever function is called when the action button is pressed.
This will also help me to rebind the action button to another key.
But, All i would need is to script call $game_player.check_action_event <-- something that does this but it'll work more than just one time.
How about this? https://github.com/theoallen/RGSS3/blob/master/Event Queues.rb
It triggers the event even from far away though.
How about this? https://github.com/theoallen/RGSS3/blob/master/Event Queues.rb
It triggers the event even from far away though.
This post can be cleared.

All I need to figure out, is what code is ran when I push the action button, so I can take that and have it run in an event, or another script. So the action button is pressed without any actual needed input.

My first problem of this post was solved. Thanks for your help.
Then you may want to create a separate topic for your different problem. If the original problem of this topic is solved, report your post to mod so that it can be closed. A thread can only focus on one problem so it will not be confusing about what is your actual problem.

Simulating if a button is pressed should be easy enough, but I'm going to answer that in a different thread.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-anyway-to-force-the-game-to-press-the-action-button.104695/