Question about Skill and Scripting

Hello guys,

So, this is my first post here, just bought RPG Maker since it was on sale on Humble Bundle, and i though that i could use it for my Graduation Project for my BA in Software Engineering.

I will try to give you guys a general ideia of what i have in mind, and them i want to kindly ask if someones knows if RPG Maker is able to "handle" what i plan on doing for my game.

Ok, i plan on doing a simple RPG game, you will be a boy and you will "find" a book, thats able to "do magic". but do "do magic" you will need to code it.

When we first start at the course, you learn something we call here (i live in Brazil between) "Portugol" its like writing algorithms but in natural language, something like this:

Start

Algorithm "Hello World"

{

    Write "Hello World"

}

Finish

My ideia, was to create a game where the new students could practice their coding skills. I want them to practice it using the "do magic" book to create their own skills.

So this is the general ideia, to create a game where i'm able to code my own skills and use them in battle after that.

Can i actually do something like this using the Script Tool on RPG Maker ?

If someone needs more info, just ask me and i will try to give more details.

Thank you guys!

Att,

Lokharth
"Scripting" in the RM community is in reality full programming - in Ruby to be exact as RGSS3 (the scripting language of Ace) is a variant of Ruby.


As such, theoretically everything is possible - including executing strings by eval-function, and you can program your own scripts to let the player enter those strings during gametime.


So basically yes, you can do what you want. It'll require one of the full keyboard input scripts (already available), you'll have to redirect the error handling for the eval function to prevent error messages from ending the game (can be done, but requires some work from you - look for one of the backtracer scripts to learn how to change the error handling).


It will require a lot of knowledge in computer logic, but with a BA in sofware engineering you should be able to handle that.


I would really like to see the result if you can complete that however - it would go a long way to enable dynamic skill creation even if you don't task the player with programming...
Thank you for your reply!

I wanted to use RM for my project since i dont know much about 3D modeling, and i really love the simplicity in the 2D games, they have a "charm" that most modern games lack nowadays.

Its nice to know that I can achive it with RM and I have a full year to do it, so I will be working fulltime on this.

I would love to show the results but i'm afraid the game will have to be in Portuguese, but i will work with english scripts so i can share what i've done with you guys 🙂
Yes, it's possible, but:

1) Your students will need to write the code in Ruby, unless you create a full interpreter for portugol.

2) If you want them to write the code inside the game, there won't be any good text editor. Bu you can make the game load the scripts from files.

3) Their scripts could change anything in the game. If someone knows the engine they may write scripts to change anything they want.

Creating a new skill is as simple as adding an item to an array and filling some properties.
Yeah, I plan on doing an interpreter for portugol since they wont be able to handle something like Ruby in their freshman year.

About the editor, I think it would be better if they could code in-game, but if they dont, loading scripts its not that hard to do for a freshman 🙂

Thank you for the reply!
 This is a good idea for a game, I'd definitely love to play it, it'd help me with my coding skills.
That's my goal for it.

Instead of having to do boring exercises that sometimes don't make much sense for the students. They will have a place for practice that is fun and they can see it working, what effects their code has to their spells and such.

Thanks for your reply!

Original thread: https://forums.rpgmakerweb.com/threads/question-about-skill-and-scripting.44329/