A little help with Script(s)

Hello everyone! Jac here again!

I am trying to make a "simple" return to Title during a movie. Something like this.

Ruby:
Graphics.play_movie('Movies/My Movie') unless input.trigger?(:C)

But it seem like I'm missing something or lack certain knowledge. I don't know why but I feel like this can work. I just want to know if someone can explain it a little to me and what I might be missing.

Also, instead of putting it in the Material Section, I put it in the Window_TitleCommand above the codes so I don't screw anything up. It work with playing the movie itself but I can't figure out that return to Title stuff.
perhaps
Ruby:
while !input.trigger?(:C)
  Graphics.play_movie('Movies/My Movie')
end

Hey there! Nice to see you again! Unfortunately it told me this:

undefined local variable or method `input' for main😮bject

So I don't know. I even tried to switch it up by putting the "While" line underneath the Graphic Movie line to see if it works. From what I THINK I understand is that the Input isn't recognize yet. I think I understand Variable but what does Method mean?

Thanks, Roninator2!
Unfortunately it told me this:

undefined local variable or method `input' for main😮bject
Well I have no idea where you are putting this. So unless it's in a proper location (not sure yet, haven't though about it) then it will always give you an error.

Methods
def this_is_my_method
block code
end

Looks like you're trying to learn ruby language so look up some tutorials. there are a few and some that specifically refer to RPG Maker coding.
or maybe take a ruby programming course. I'm doing one now on udemy for ruby 2.3 (similar to rpg maker). RGSS3 is basically ruby 1.9.2 from what I remember being told a few years ago.
So unless it's in a proper location
I put it under Window in the Window_TitleCommand but typed the codes at the top instead of the bottom. It was how I was able to play the movie.

Looks like you're trying to learn ruby language so look up some tutorials.
I've actually been doing that! From Youtube to whatever I could get my eyes on. Lol. But they don't always explain what is what. Just says it is how it's suppose to be. I will check out the Ruby Programming Course!

RGSS3 is basically ruby 1.9.2
That is VERY useful to know! I tried looking up what I could find about the Version it has for VX Ace but couldn't find anything so I thought it was one and the same. Thank you for telling me!

Thank you, Roninator2 for taking the time for me again!

Original thread: https://forums.rpgmakerweb.com/threads/a-little-help-with-script-s.121937/