Gw Temp

Menu

Tutorial - 'Easy party change system' by Guest

An item about RPGMaker 2000 posted on

Blurb

How to create a simplistic party change system for your rm2k project

Body

First off this is my first tut so lemme know if I mess up.Ok heres what ya wanna do.For EACH one of your characters you have create a variable for them.but for now just make a new character give it a name and graphic.Then create a new map--this is just for the tutorial purpose you can delete it later on.Now create an event,make it look like whatever you want.For the sake of this tut lets use a save point.
Event Conditions:
On Hero Touch
Below hero

open the event editor and make a message command..something like would you like to save or change party members.then add a show choice command.Make one choiceChange Party have the other choice save.
To get it over with..under the save choice add the Call save menu event under the 3rd page of event commands....
It should look like this so far

<>Messg:What would you like to do?
<>Show Choice: Save/Change Party
:[Save] Case
<>Call Save Menu
:[Change Party] Case

Now for the fun stuff.The new character you made have him say a message and then join your party.In the same event create a change variable command.In the Choose Variable(s) box
check one and choose the variable with the same name as the character you're meeting.In the set box select set and the operand check set and make it 1.All this does is set a number so that later on in the change party event when they try to remove a character who is already removed the event will let them know that the character is already removed and the same when they try to add a character who is already on your party.Still with me? good.time to move on.

Back to our original event.Y'know Change Party/Save choice heres what youre going to do.Under the change party case have a message saying.Who would you like to remove.make a choice command under it.Have 2 choices.The character you just made and nobody.Under the characters name create a fork condition.On the 1 tab choose variable (above set) and chose the variable that belongs to the character you made.select set and make it 1 and underneath variable select same.add an else case.
under the fork option,remove the character you made from your party.have a message saying you did so.Then make a change variable event and select the variable for the character,under set make it - and under operand select 1.under the else case have a message saying that the character isn't in your party.It should look like this.

<>Messg:Who would you like to remove from your party?
<>Show Choice: Bob/Nobody
:[Bob] Case
<>FORK Optn:Varbl[0001:Bob]-1
<>Change Hero's Party:Bob->Remv
<>Messg:Bob was removed from your party
<>Variable Ch:[0001:Bob] -, 1
<>
:ELSE Case
<>Messg:Bob isn't in your party!
<>
:END Case
:[Nobody] Case
<>
:End Case

That makes it so that if the variable number is 1 then you can remove the character from your party.When you remove the character you subtract 1 from the character's variable so now the variable number is 0.Now if you want to add a character you do the exact same thing EXCEPT in the fork option choose the variable for your character in the set box make it 0 and make it below.Add else case.
Below the fork option add the character who you want to add.Make a message saying that the character was added.AND make a variable command and DUh choose your characters variable,in set make it +,and operand select set and make it 1.
In the else case have a message saying that the character is already in your party.here is what that should look like.

<>Messg:Who would you like to add to your party?
<>Show Choice: Bob/Nobody
:[Bob] Case
<>FORK Optn:Varbl[0001:Bob]-0less
<>Change Hero's Party:Bob->Add
<>Messg:Bob was added from your party
<>Variable Ch:[0001:Bob] +, 1
<>
:ELSE Case
<>Messg:Bob is already in your party!
<>
:END Case
:[Nobody] Case
<>
:End Case


Now that wasn't that hard at all! For more characters just add another event nearby.Remember to set the character's variable to 0 each time you first meet them when you add them to your total party.Variables are fun :)