Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
RPG Maker
»
Change graphic to ? depending on which hero is at front?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Change graphic to ? depending on which hero is at front? (Read 4580 times)
Alecain
Initiate
Posts: 22
Hmmm... I'll leave this blank. What a great idea!
Change graphic to ? depending on which hero is at front?
«
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.
Logged
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
Re: Change graphic to ? depending on which hero is at front?
«
Reply #1 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.
«
Last Edit: August 29, 2013, 08:27:41 PM by DragonBlaze
»
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
drenrin2120
Global Moderator
Sage
Posts: 6,101
Re: Change graphic to ? depending on which hero is at front?
«
Reply #2 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.
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,644
The Administrator Mage
Re: Change graphic to ? depending on which hero is at front?
«
Reply #3 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.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
RPG Maker
»
Change graphic to ? depending on which hero is at front?