Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Help
fantasykisala
post Mar 13 2012, 07:35 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 5
Type: Writer
RM Skill: Beginner




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
@>
Go to the top of the page
 
+Quote Post
   
Sakura Phoenix
post Mar 13 2012, 08:56 AM
Post #2


Cherry Blossom of the Heart
Group Icon

Group: Revolutionary
Posts: 447
Type: Artist
RM Skill: Skilled




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.


__________________________
My Projects:


Projects I support
Looking for some new sci-fi projects to support~
Go to the top of the page
 
+Quote Post
   
fantasykisala
post Mar 13 2012, 10:22 AM
Post #3


Level 1
Group Icon

Group: Member
Posts: 5
Type: Writer
RM Skill: Beginner




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.
Go to the top of the page
 
+Quote Post
   
Sakura Phoenix
post Mar 13 2012, 10:58 AM
Post #4


Cherry Blossom of the Heart
Group Icon

Group: Revolutionary
Posts: 447
Type: Artist
RM Skill: Skilled





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
@>


__________________________
My Projects:


Projects I support
Looking for some new sci-fi projects to support~
Go to the top of the page
 
+Quote Post
   
fantasykisala
post Mar 13 2012, 02:59 PM
Post #5


Level 1
Group Icon

Group: Member
Posts: 5
Type: Writer
RM Skill: Beginner




Thank you so much.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 08:26 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker