So I'm moderately knowledgeable on coding and Ruby. I've been going through various courses (online and books) and put together various simple applications (outputs on command line prompts, nothing too fancy). But I really want to learn to do something with it, to go the next step and create actual applications that people will pick up and use.
That's where RPG Maker comes in! It's all there, ready to access and start tinkering with as long as you have the Ruby knowledge. I was hoping to use this forum to learn from some more experienced coders on how to go about learning to script - not just learning about variables this, methods that, but how to use the nuts and bolts to actually build something exciting. I've been poring over the script manager in RMVXA and the pieces are slowly coming together about all the constituent parts work together to make the game actually run.
Resources on this seem a little thin on the ground (or maybe I'm not looking hard enough?) so I created this thread with the hope that others in my position will come forth and we can learn to together - people who have some (a little?) coding knowledge, looking to make the next step.
So, to kick us off; bassfire compiled a list of youtube videos made by the wonderful gubid who's teaching us to script. This was exactly the level I was looking at, and I've been working through the videos. The best ones, however, seem to be for RMVX, not Ace, so there's some conversion that needs to be done to make his scripts work, and I was hoping someone would be able to point me in the right direction.
In this video, he shows how to make a window pop up that just shows a character's face (in order to teach us how classes and inheritance works). When I follow his tutorial, however, I can make the window appear, but it won't dispose. Here's the script as written in the manager:
class Window_Mine < Window_Base def initialize super(0, 0, 320, 240) actor = $game_actors[1] x , y = 5, 50 draw_actor_face(actor, x, y) endendclass Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Input.trigger?(Input::C) $scene = Scene_Map.new end end def terminate @my_window.dispose endendAnd in the game we create an event with the following scipt call in it:
SceneManager.call(Scene_Mine)As mentioned, when you activate the event, it creates the window as expected but it will not go away. I'm guessing it's either something to do with the input not triggering ("if Input.trigger?") or the "def terminate" method not set up correctly. If someone knows what else I need to do to get it to work as in the video, I'd be highly appreciative.
That's where RPG Maker comes in! It's all there, ready to access and start tinkering with as long as you have the Ruby knowledge. I was hoping to use this forum to learn from some more experienced coders on how to go about learning to script - not just learning about variables this, methods that, but how to use the nuts and bolts to actually build something exciting. I've been poring over the script manager in RMVXA and the pieces are slowly coming together about all the constituent parts work together to make the game actually run.
Resources on this seem a little thin on the ground (or maybe I'm not looking hard enough?) so I created this thread with the hope that others in my position will come forth and we can learn to together - people who have some (a little?) coding knowledge, looking to make the next step.
So, to kick us off; bassfire compiled a list of youtube videos made by the wonderful gubid who's teaching us to script. This was exactly the level I was looking at, and I've been working through the videos. The best ones, however, seem to be for RMVX, not Ace, so there's some conversion that needs to be done to make his scripts work, and I was hoping someone would be able to point me in the right direction.
In this video, he shows how to make a window pop up that just shows a character's face (in order to teach us how classes and inheritance works). When I follow his tutorial, however, I can make the window appear, but it won't dispose. Here's the script as written in the manager:
class Window_Mine < Window_Base def initialize super(0, 0, 320, 240) actor = $game_actors[1] x , y = 5, 50 draw_actor_face(actor, x, y) endendclass Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Input.trigger?(Input::C) $scene = Scene_Map.new end end def terminate @my_window.dispose endendAnd in the game we create an event with the following scipt call in it:
SceneManager.call(Scene_Mine)As mentioned, when you activate the event, it creates the window as expected but it will not go away. I'm guessing it's either something to do with the input not triggering ("if Input.trigger?") or the "def terminate" method not set up correctly. If someone knows what else I need to do to get it to work as in the video, I'd be highly appreciative.