Help - Search - Members - Calendar
Full Version: Help
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
fantasykisala
I'm trying to put this into RPG Maker XP, but I can't seem to figure out how to do it.

CODE
@>Conditional Branch: Variable [0026: Starter choice] == 1         --- 1 means the player chose the Grass starter
  @> The rival goes to the Fire starter and picks it up
: Else
  @>Conditional Branch: Variable [0026: Starter choice] == 2       --- 2 means the player chose the Fire starter
    @> The rival goes to the Water starter and picks it up
   : Else                                                           --- The only other option is if the player chose the Water starter
    @> The rival goes to the Grass starter and picks it up
   : Branch End
  @>
: Branch End
@>
Sakura Phoenix
Is this a...pokemon type thing? Are you trying to event the move route? Is the character walking to a pokemon? type thing and choosing it, that you are having a problem with?
What you want to do if I'm guessing what you are trying to do correctly, is have that event on a parallel process with the choice option. And if the player chooses the first choice, set underneath the change [0026]: Starter Choice ==1, set move route NPC (plan out the route to pick up the fire based ...again, assuming pokemon) and second choice [0026]: Starter Choice ==2, set move route NPC and so on.

I'm sorry if I couldn't guess exactly what you are having a problem with, could you perhaps be a little more specific? If I guessed wrongly.
fantasykisala
QUOTE (Sakura Phoenix @ Mar 13 2012, 09:56 AM) *
Is this a...pokemon type thing? Are you trying to event the move route? Is the character walking to a pokemon? type thing and choosing it, that you are having a problem with?
What you want to do if I'm guessing what you are trying to do correctly, is have that event on a parallel process with the choice option. And if the player chooses the first choice, set underneath the change [0026]: Starter Choice ==1, set move route NPC (plan out the route to pick up the fire based ...again, assuming pokemon) and second choice [0026]: Starter Choice ==2, set move route NPC and so on.

I'm sorry if I couldn't guess exactly what you are having a problem with, could you perhaps be a little more specific? If I guessed wrongly.

You guessed right, this event it running parallel to the starter choice.
Sakura Phoenix

I think you might be making it more complex then it needs to be? Here's an example of what you could do.
You just need one parallel event. And have the move routes/selection of the opposite team there. Maybe an extra Variable for the NPC's choice, in case it effects the game later. Also, in this case, you don't want to have the conditional branch under a different else.
CODE
@>Show Choices:Grass, Fire, Water
:When [Grass]
  @>Control Variables:[0145: Starter Choice]= 1
  @>Play SE: '055-Right01',80,100
  @>Set Move Route: [RivalNPC]
                                  :$>Move Up
                                  :$>Move Left
                                  :$>Move Left
  @>Control Variables:[0146:Rival Choice]= 2
:When [Fire]
  @>Control Variables:[0145: Starter Choice]= 2
  @>Play SE: '055-Right01',80,100
  @>Set Move Route: [RivalNPC]
                                  :$>Move Up
                                  :$>Move Right
                                  :$>Move Right
  @>Control Variables:[0146:Rival Choice]= 3  
:When [Water]
@>Control Variables:[0145: Starter Choice]= 3
  @>Play SE: '055-Right01',80,100
  @>Set Move Route: [RivalNPC]
                                  :$>Move Up
                                  :$>Move Up
                                  :$>Move Up
  @>Control Variables:[0146:Rival Choice]= 1
  @>
:Branch End
@>
fantasykisala
Thank you so much.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.