Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Request! I really need help. Come to my rescue

The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Nitaraqt4life on December 02, 2007, 07:55:43 PM

Title: Request! I really need help. Come to my rescue
Post by: Nitaraqt4life on December 02, 2007, 07:55:43 PM
Hello everyone. I'm new here but not to Rpg Maker Xp. You see, I've been making a game called Planet Protectors since last year June 18. Here's the problem. Just like in most games, like Final Fantasy 7, you get to pick which characters you want to be in your party. For example, I'll have Cloud, Tifa, and Yuffie. Then in the next scene, those are the characters that are there. How do I that in Xp, where the character you choose to have in your party to be present in the next scene. I'm using Blizzard Party switcher and Slipknots AMS. Please help.[/I  :( :o ??? ::) :P :lol: :'( :)
Title: Re: Request! I really need help. Come to my rescue
Post by: :) on December 02, 2007, 08:13:56 PM
you can add/drop party members via event commands.
Title: Re: Request! I really need help. Come to my rescue
Post by: modern algebra on December 02, 2007, 10:24:38 PM
Well, he's using a party switcher script. Anyway, do this:

Use four in-game variables, whatever IDs are free. For the purposes of this, I will let A, B, C, and D represent the four variables IDs you chose.

Name them Party Member 1, Party Member 2, Party Member 3, and Party Member 4

Then, use the Script event command and put in it:



actors = $game_party.actors
$game_variables[<A>] = actors[0].id if actors.size > 0
$game_variables[<B>] = actors[1].id if actors.size > 1
$game_variables[<C>] = actors[2].id if actors.size > 2
$game_variables[<D>] = actors[3].id if actors.size > 3



Then you can use conditional branches on Variables A, B, C, and D to discover which member is currently in the party.
Title: Re: Request! I really need help. Come to my rescue
Post by: Nitaraqt4life on December 03, 2007, 12:43:25 AM
But I'm not really sure what to do with the conditional branch. And it says that theres a sytax error when I try to use the code you gave me. I have a total of 12 characters and I want to make a scene where only the four characters that the player choose to be in the party to appear in the scene.
Title: Re: Request! I really need help. Come to my rescue
Post by: modern algebra on December 03, 2007, 07:30:55 PM
Okay, well I made a demo. It will look awkward and the reason I did it the way I did was to show you use of conditional branches. There are other ways, some might even be more intuitive.

I didn't really pay attention to the Selection Event either.
Title: Re: Request! I really need help. Come to my rescue
Post by: Nitaraqt4life on December 03, 2007, 08:50:42 PM
When I try to download it, it doesn't work
Title: Re: Request! I really need help. Come to my rescue
Post by: :) on December 03, 2007, 08:53:31 PM
after you downloaded it, or the link does not work?

you need a .rar opener to open the file.
Title: Re: Request! I really need help. Come to my rescue
Post by: Nitaraqt4life on December 03, 2007, 08:55:04 PM
After. What's a .rar?