Thread: [Essentials Script] GTS System
View Single Post
  #26    
Old April 1st, 2014 (7:08 PM).
~JV~'s Avatar
~JV~ ~JV~ is offline
Dev of Pokémon Uranium
     
    Join Date: Aug 2007
    Location: Rio de Janeiro
    Age: 24
    Nature: Relaxed
    Posts: 714
    Quote:
    Originally Posted by hansiec View Post
    As of why the error is happening, I don't know. But, I am almost certain this is because the pokemon you selected somehow managed to be classified as "nil" have you tried this on a clean version of essentials with the newest version of the GTS?
    5 mins after posting I figured out it was an error on the script itself. On line 385 "pkmn = $Trainer.party[choice[1]].clone" was trying to clone something that didn't exist since the pokémon I was trading was on the deposit. Adding a "if Party" to the end of the line was enough to fix the bug, since now that it checks where it was selected from it can run the next line "pkmn = $PokemonStorage[choice[0]][choice[1]].clone if !party" which is the one used on my case.
    __________________
    Reply With Quote