Rival Issue

Algalirept

Novice
Member
Joined
Apr 8, 2017
Posts
18
Hey guys I have a question/problem and I was wondering if anyone could help. See I've been lucky enough to get shinny's Starter Selection script to work even with my fakemon but the problem I'm having has to do with initializing a rival battle right after. Since I'm using this script I have no idea if a starter variable is even being triggered unlike with the standard starter event and its causing me some frustration, I've even looked through the script myself (and as I have zero knowledge on scripting bar the basics) I can't seem to find any evidence that a variable is being activated within it. Its upsetting especially because I'd really like to continue using this amazing script and I don't want to change it back to the original/standard starter event. But I will if theres no other way around this problem.
 
Is there some kind of issue setting up the variable yourself?
If you don't want to touch the script, I'd probably setup an event to run after the starter selection. Just check if the player's party has a specific species, and if yes, then set the variable to 1, if no, check for the next specific species, and set the variable to 2, if still no then set the variable to 3 because the player must have chosen the third option.
 

Algalirept

Novice
Member
Joined
Apr 8, 2017
Posts
18
I think what I'm having the most issue with is setting up the correct script call to identify the players Pokémon (aka) species and that intern makes it doubly hard to set the variables, so maybe you could tell me what call I should be using and I'll go from there because I've tried $Trainer.pokemon.Party and pbHasSpecies? but I'm not sure if I'm using them correctly or not.
 

Algalirept

Novice
Member
Joined
Apr 8, 2017
Posts
18
I've decided to use the standard starter event, I've realized that as a newby of Essentials trying out all kinds of crazy scripts and new fangled ideas whilst still learning the basics is kind of crazy. So, I've decided that stepping back and using the basics is a better choice in the long run. I'm still keeping the starter script but I think I'm gonna use it for something that doesn't dictate the actions of the Rival. Now all that being said I still seem to be having an issue with the rival event although why I have no idea, it should be simple and easy as pie to initiate using the standard starter event but I'm still getting errors. Here's the event with the character I'm using as the rival and here is the error I keep receiving.
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 85 (coords 62,16), map 43 (Cottenwood Labs):
Exception: NameError
Message: (eval):1:in `pbExecuteScript'uninitialized constant Interpreter::TEAMHARMONIAADMIN1
***Full script:
pbTrainerBattle(TEAMHARMONIAADMIN1,"???",_I("..."),false,1)
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
 

Algalirept

Novice
Member
Joined
Apr 8, 2017
Posts
18
Guess what guys! I figured out my problem! Apparently I'd missed adding something into the pbTrainerBattle script call that honestly I hadn't even given two thoughts to. Probably because some of the online tutorials I'd watched didn't seem to include it, (that or I'm really unobservant -.-), but anyway everything's working 100%.
 
Top