In-Software Scripting for Class Change

Hello there,

I am currently using RPG Maker XP in my latest project. I have an idea for a simple character class add-on, and I think I could pull it off with the use of common events and (light) scripting. The problem is, is that like the average RPG Maker user, I know nothing about scripting.

My goal is simple.

I want to create a consumable item that promotes a character to a different class depending on their current class. So for instance, if my Warrior class uses this item, it will make them a, for the sake of this explanation, a "Super" Warrior class.

The advanced character class, like mentioned above, will depend entirely on what the actor's class was prior to using the item. In other words, a Warrior cannot promote into a "Super" Mage.

I have a vague idea on how the scripting will work, I just need to know how to actually script it out. I am aware that there will be a lot of "If" statements.

Here is the script breakdown that I came up with:

1.) Get actor ID upon using item.

2.) Check and match actor's class using a bunch of "if"/"then" statements.

3.) Change actor's current class to the appropriate advanced class.

4.) Return a message if an actor's class is already promoted OR if their current class is not a class that is able to be promoted.

That's pretty much it, really.

I really appreciate, in advance, any help that is offered in my direction. Thanks!

- Alek
There is no need for scripting, that can be done completely with eventing.


The only problem with eventing is that it will need a lot more conditional branches before using the change actor class command (or the other change actor commands), and you'll have to be tricky with the targeting options to identify which actor uses the item (there are a few variants how to do that)


That said, yes a script is easier - if you can find one or someone can write one for you. And I don't know how many XP-Scripters are still around, so you might have to use the event method or wait a lot.
Alright, thank you for your prompt response. Eventing, huh? I can set up events pretty well, but like you said, the targeting is what I'm worried about mostly. A friend of mine said the basics of scripting can be learned in about a day, so I may just have to buckle down and deal with it. 🙂

Again, thank you for the help. 🙂
Not exactly - the syntax of a programming languages can be learned in a day. Understanding the logic of how they work is something else.


Some people can learn computer logic in several weeks, other's don't grasp it after months of trying.


Please read this link to understand the difference:


http://forums.rpgmakerweb.com/index.php?/topic/5108-a-good-article-for-you-budding-scripters/

Original thread: https://forums.rpgmakerweb.com/threads/in-software-scripting-for-class-change.39984/