Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Rival?

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Closed Thread
 
Thread Tools
  #1    
Old October 19th, 2012 (08:18 AM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
Probably the most silly question to ask.
But how would I make it so the player chooses the Rival's name?

Like in Red and Blue you choose a few names like ( Blue, Jon, Pete) or a New name all together?

and it sets it for me to be able to use in battles and stuff.
__________________
gone.
  #2    
Old October 19th, 2012 (09:06 AM).
Umbreon's Avatar
Umbreon Umbreon is offline
Gold Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Posts: 1,595
Quote originally posted by Nintendork15:
Probably the most silly question to ask.
But how would I make it so the player chooses the Rival's name?

Like in Red and Blue you choose a few names like ( Blue, Jon, Pete) or a New name all together?

and it sets it for me to be able to use in battles and stuff.
You could use:
Code:
$game_variables[x] = Kernel.pbMessageFreeText("Enter your rival's name", "", 256, false)
Sorry if I got the FreeText wrong (I might be the call or the argument structure) but this will allow you to enter a Rival's name via Keyboard.

also x = the variable ID of the rival.
  #3    
Old October 19th, 2012 (09:11 AM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
So, how do I make it show the typed in name later in game like for example:

''[RIVAL] Hey, [player's name] how ya doing?''
__________________
gone.
  #4    
Old October 19th, 2012 (09:23 AM).
Umbreon's Avatar
Umbreon Umbreon is offline
Gold Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Posts: 1,595
Quote originally posted by Nintendork15:
So, how do I make it show the typed in name later in game like for example:

''[RIVAL] Hey, [player's name] how ya doing?''
\v[x] -- X being again the variable number of your rival, as of in-battles I don't know although I am sure Maruno set up pre-defined variables in the Settings script.

Edit: \v[x] would be like that inside a normal message. (From the Event editor)
  #5    
Old October 19th, 2012 (09:35 AM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
When someone types a name in they get:

Quote:
---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 1, map 51 (Intro):

Exception: NoMethodError

Message: Section081:116:in `insert'undefined method `>=' for false:FalseClass

***Full script:

$game_variables[90] =
Kernel.pbMessageFreeText("Enter your
rival's name", "", 256, false)


Interpreter:243:in `pbExecuteScript'

PokemonTextEntry:206:in `insert'

PokemonTextEntry:797:in `update'

PokemonTextEntry:795:in `each'

PokemonTextEntry:795:in `update'

PokemonTextEntry:788:in `each'

PokemonTextEntry:788:in `update'

PokemonTextEntry:869:in `pbFreeText'

PokemonTextEntry:866:in `loop'

PokemonTextEntry:880:in `pbFreeText'



Interpreter:276:in `pbExecuteScript'

Interpreter:1599:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `update'

Scene_Map:101:in `loop'

Scene_Map:114:in `update'

Scene_Map:68:in `main'



This exception was logged in

C:\Users\Sam\Saved Games/Pokemon Essentials/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
__________________
gone.
  #6    
Old October 19th, 2012 (10:28 AM).
Umbreon's Avatar
Umbreon Umbreon is offline
Gold Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Posts: 1,595
Quote originally posted by Nintendork15:
When someone types a name in they get:
sorry the layout was wrong...

Code:
$game_variables[x] = Kernel.pbMessageFreeText("Enter your rival's name", "", false, 10)
  #7    
Old October 19th, 2012 (12:54 PM).
Shoukien's Avatar
Shoukien Shoukien is offline
Pokemon Master
 
Join Date: Oct 2012
Age: 23
Gender: Male
Nature: Naughty
Posts: 5
I have a question related to "Rival" also.
How do you make it so at the beginning of the game, after you choose a Pokemon.
Your Rival picks the Pokemon that is super effective against yours?

Example;
You pick Charmander, and then your Rival picks Squirtle.

and how to edit his party later in the game while keeping his/her starter.
__________________
  #8    
Old October 19th, 2012 (01:10 PM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
Quote originally posted by Shoukien:
I have a question related to "Rival" also.
How do you make it so at the beginning of the game, after you choose a Pokemon.
Your Rival picks the Pokemon that is super effective against yours?

Example;
You pick Charmander, and then your Rival picks Squirtle.

and how to edit his party later in the game while keeping his/her starter.
Only way I can think is:
Make 3 Switches:
1:Bulbasaur
2:Charmander
3quirtle.

When you pick Bulbasaur set switch 1 to on
When Charmander Set switch 2 to on
When squirtle set switch 3.

Then you need 3 pages of the rival event, one for each page.
Each page will have the rival pick the super effective, and fight with it.
You've just got to script and put in the event and fights.
__________________
gone.
  #9    
Old October 19th, 2012 (01:29 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,561
Let me know when you guys decide to read the wiki.
__________________
  #10    
Old October 19th, 2012 (01:31 PM). Edited October 19th, 2012 by Shoukien.
Shoukien's Avatar
Shoukien Shoukien is offline
Pokemon Master
 
Join Date: Oct 2012
Age: 23
Gender: Male
Nature: Naughty
Posts: 5
Quote originally posted by Nintendork15:
Only way I can think is:
Make 3 Switches:
1:Bulbasaur
2:Charmander
3quirtle.

When you pick Bulbasaur set switch 1 to on
When Charmander Set switch 2 to on
When squirtle set switch 3.

Then you need 3 pages of the rival event, one for each page.
Each page will have the rival pick the super effective, and fight with it.
You've just got to script and put in the event and fights.
That was pretty easy to understand.

But even if my switch is on, How do I make it so way later in the game I can change his party while keeping his starter(evolved).


~EDIT~
I did not notice the "Route 22 Appearance" part of the Rival topic on the Wiki.
NOTE: I think the wiki could use a bit more work though, there are "Red" and unfinished links/articles.
__________________
  #11    
Old October 19th, 2012 (02:01 PM). Edited October 19th, 2012 by Lord Varion.
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
Same thing as earlier. Just have the fight with the rival including the evolved form.

Quote originally posted by Maruno:
Let me know when you guys decide to read the wiki.
The wiki takes to long to load for my and my browser mistakes the waiting as a unrespondent page, so I never visit the wiki.
__________________
gone.
  #12    
Old October 20th, 2012 (05:56 PM).
Shoukien's Avatar
Shoukien Shoukien is offline
Pokemon Master
 
Join Date: Oct 2012
Age: 23
Gender: Male
Nature: Naughty
Posts: 5
Quote originally posted by Nintendork15:
Same thing as earlier. Just have the fight with the rival including the evolved form.



The wiki takes to long to load for my and my browser mistakes the waiting as a unrespondent page, so I never visit the wiki.
Are you using Google Chrome?
I heard from several of my friends on Facebook say that Google Chrome has too many problems.
__________________
  #13    
Old October 21st, 2012 (10:10 AM).
Umbreon's Avatar
Umbreon Umbreon is offline
Gold Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Posts: 1,595
Quote originally posted by Shoukien:
Are you using Google Chrome?
I heard from several of my friends on Facebook say that Google Chrome has too many problems.
I use chrome and not one problem has occurred.
  #14    
Old October 21st, 2012 (01:31 PM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
I do indeed use chrome.
But the problem is not Chrome. T'is indeed my internet.
__________________
gone.
  #15    
Old February 15th, 2013 (06:19 AM).
TigerQ TigerQ is offline
 
Join Date: Feb 2013
Posts: 5
Quote originally posted by Nintendork15:
I do indeed use chrome.
But the problem is not Chrome. T'is indeed my internet.
Sorry to post in a old thread, but since my question is link to Rivals so here is it:

How can I give the specified pokemon to the rival, after player picked up a pokemon?

I mean, just like original Fire Red version, if you pick up a grass one, rival will pick up a fire one. No problem here, I know how to set different events. But after that, player and rival will have a battle. And how can I give the super effective one to rival, and let him battle with player using the super effective pokemon?

Sorry for my bad English.
  #16    
Old February 15th, 2013 (09:52 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,561
Different versions of the rival trainer depending on the player's choice of starter. Read the wiki and look at the example maps.

Please don't bump threads that have been inactive for more than 2 months. Even if the topic is similar or even the same, it's against the rules. Make a new thread instead.
__________________
Closed Thread
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 02:12 AM.