Bookmark RPG RPG Revolution! RPG RPG Revolution RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker XP > Actor Swap

Actor Swap


*Note that this is my first tutorial, and I hope to create a couple others before my time fades.*

Here is the demo, which you should check out if you have a hard time following along, or if you are just lazy. If you are using this tutorial, then you should know a little about control switches first.

http://www.mediafire.com/?j0f0gajxb9i

Simple idea, simple, though redundant steps. Demo has one permanent actor, with seven that can be interchanged.

Alright, let's get to the steps. Be sure to have a paper and pencil to make this easier.

1) Count how many actors you are going to use in your game. The smaller the number, the less time it takes to do this tutorial.

2) On your paper, assign each actor a number. If you have a permanent actor, assign him/her to 0.

3) Now for the fun stuff. Write the first number on the paper. Underneath it, put a dash twice the size of the number above. This makes the process easier.

4) Beside the line, write the next number. It should look like this:

1
--2

Continue this pattern with the next two numbers, so that they look like this:

1
--2
----3
------4

5) Now, the above diagram shows how the common event is going to look like. Continue adding the rest of the numbers to the equation so that they run parallel with the fourth number. It should look like this:

1
--2
----3
------4
------5
------6
------7
------8

6) Now that you understand the pattern, continue with it. You have finished with the 3 sequence, so where 3 was in the above, place 4, and remove 3 from the pattern for now. You should end up with this:

1
--2
----3
------4
------5
------6
------7
------8
----4
------5
------6
------7
------8
----5
------6
etc...

7) Once you have finished this pattern so that every number has had their sequence in the 1 position filled, you are done the basic pattern. Now we get ot the actual event making process. First, make a bunch of control switches equal to the number of actors you are allowing to switch around. Name each switch after each actor.

8) Create a new Common event, and name it "Actor Swap".

9) Now, what you must do is take the pattern you made, and change it into an event code. Don't get angry that I made you make that list, as it helps. Here is the starting of the event code:

[codebox]@>Conditional Branch: [Actor 1] is in the party
@>Conditional Branch: [Actor 2] is in the party
@>conditional Branch: [Actor 3] is in the party
@>Text: Who would you like to remove from the party?
@>Show Choices: Actor 1, Actor 2, Actor 3
: When [Actor 1]
@>Control Switches: [0001: Actor 1] = OFF
@>Change Party Member: Remove [Actor 1]
[/codebox]

And you continue the event in a similar process.

10) Now that you have the common event set up, shall we get to the actors? First, create an event with two pages, the second activated by one of teh control switches. Change the first pages graphic to that of the character that is being invited to the party.

11) Add a little conversation if you like, then, once the character has agreed to join, call the common event "Actor Swap", then make the actor join the party. **Make sure to NOT check the initialize box** Top that off by turning the control switch that shares the actors name on.

12) On the other event page, make sure the graphic is blank, and that no commands are set. If you want, you can create another page and switch to have the actor change their conversation the next time you talk to them.


That about finishes my Tutorial. If anyone finds anything that needs to be worked on, or if something could be added to make this easier, please leave a comment. I hope that this tutorial helps make some awesome games. 
Details
Tutorial: Actor Swap
Date Listed: 2008-06-08
Author: Klighndes
Total Hits: 1276


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal