Charas-Project

Game Creation => RPG Maker => Topic started by: Alecain on August 29, 2013, 06:22:29 PM

Title: Change graphic to ? depending on which hero is at front?
Post by: Alecain on August 29, 2013, 06:22:29 PM
Hey all, I've been working quite intensively on my game, which I guess is going to be called Dream Heart at this point, so there's been quite a bit of progress and polishing done with it as of late.

I ran into a small visual problem, though, and would like to see if there's any help out there.

Basically, I have the skiff set to change it's graphic through a common event when you enter it. It will change from an empty boat into a graphic I made that actually shows the hero sitting in the boat. Now, I've only made one set of graphics for the main character, but what if you want to change the order of the party to have another character up front?

Aside from taking out the Order option from the menu, is there any tricky way to detect which character is up front and change the skiff's graphic accordingly? I assume that would be done by activating a separate common event for each character. I've checked the variable ops and conditional branches and nothing seems like it will work.
Title: Re: Change graphic to ? depending on which hero is at front?
Post by: DragonBlaze on August 29, 2013, 06:33:02 PM
Hmm I don't think there is a way to check the order of the party by default (I'll have to double check on this when I get home from work). One thing that you can do would be to keep track of the order of the heroes manually. Essentially set aside 4 variables, [position1Char], [position2Char], [position3Char], and [position4Char], and whenever you add or remove (or change the order), update the variables to reflect the order of the party. So if you only have the first hero in the party, the variables would look like this: [position1Char] - 1, [position2Char] - 0, [position3Char] - 0, and [position4Char] - 0. If you have the second hero in the first slot, fifth hero in the second slot, and first in the third slot (no on in the last slot), it would look like this: [position1Char] - 2, [position2Char] - 5, [position3Char] - 1, and [position4Char] - 0.

When you enter the boat, you just need to see what the value of [position1Char] is and set the graphic accordingly.
Title: Re: Change graphic to ? depending on which hero is at front?
Post by: drenrin2120 on August 29, 2013, 06:40:04 PM
There is no way to keep track of a hero's order in the party without doing so manually. I found this out while making my change party system. DB's example is the best way to do it. Keep in mind though, if the player is able to alter the party order using the default rm2k3 system, the variables won't make sense until the game alters them again buy event and even then it could be messed up. To fix this, either remove the option to change party order in the default menu, or create a custom menu for changing party members.
Title: Re: Change graphic to ? depending on which hero is at front?
Post by: Prpl_Mage on August 29, 2013, 08:38:12 PM
Short answer: No.

Remember how pretty much every Final fantasy have a single lead character that does everything in the world aside from curscenes? Yeah this is the same problem.