Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] can i remove a set pokemon from party if i only have one at the time.

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.



Reply
 
Thread Tools
  #1    
Old July 11th, 2012 (07:12 PM).
shadowriver shadowriver is offline
 
Join Date: Sep 2007
Gender:
Posts: 49
i was wondering if there was a way to remove a set Pokémon from the trainer if he only has 1 Pokémon and if so keep the level its reached when it is returned.

for example.
the trainer has received a bulbasaur he trained it to level 10,he comes across a criminal organization they steel bulbasuar, trainer then meets a professor who then gives him a selection of starter Pokémon. later on the trainer recovers the bulbasaur at the level the player trained it to.
Reply With Quote
  #2    
Old July 12th, 2012 (06:34 AM).
Nickalooose Nickalooose is offline
--------------------
 
Join Date: Mar 2008
Gender: Female
Posts: 1,130
Quote originally posted by shadowriver:
This is in the Pokémon Essentials section of the forum so it’s obviously for the rmxp Pokémon Essentials starter kit
He just said it's made with Essentials... Being a little less cocky will get you more help by the way...

To remove a Pokémon, be it the last Pokémon or not, you can use:
$Trainer.party.detele_at(0), to remove the last Pokémon, but you won't want to use this when there are wild or trainer battles around, it will cause an error...

But before you do this, set yourself a Variable: $game_variables[45] for example... And use this script...
$game_variables[45]=$Trainer.party[0].

To recover the Pokémon later on... Use $Trainer.party[0]=$game_variables[45].

Simples.
Reply With Quote
  #3    
Old July 12th, 2012 (09:42 AM).
shadowriver shadowriver is offline
 
Join Date: Sep 2007
Gender:
Posts: 49
Quote:
Originally Posted byNickaloooseHe just said it's made with Essentials... Being a little less cocky will get you more help by the way...

To remove a Pokémon, be it the last Pokémon or not, you can use:
$Trainer.party.detele_at(0), to remove the last Pokémon, but you won't want to use this when there are wild or trainer battles around, it will cause an error...

But before you do this, set yourself a Variable: $game_variables[45] for example... And use this script...
$game_variables[45]=$Trainer.party[0].

To recover the Pokémon later on... Use $Trainer.party[0]=$game_variables[45]
Thank you.
and sorry about that I actually didn't mean the way it came across ill watch that in the futer.
Reply With Quote
  #4    
Old July 12th, 2012 (10:31 AM).
TACHAN TACHAN is offline
 
Join Date: Jan 2010
Gender: Female
Posts: 166
Quote originally posted by Nickalooose:
He just said it's made with Essentials... Being a little less cocky will get you more help by the way...

To remove a Pokémon, be it the last Pokémon or not, you can use:
$Trainer.party.detele_at(0), to remove the last Pokémon, but you won't want to use this when there are wild or trainer battles around, it will cause an error...

But before you do this, set yourself a Variable: $game_variables[45] for example... And use this script...
$game_variables[45]=$Trainer.party[0].

To recover the Pokémon later on... Use $Trainer.party[0]=$game_variables[45].

Simples.
And if I want to eliminate all my team to do a special event?, for example, to fight against Mewtwo using only Mew

Then would it have to put this?
$game_variables[45]=$Trainer.party[0]
$game_variables[45]=$Trainer.party[1]
$game_variables[45]=$Trainer.party[2]
$game_variables[45]=$Trainer.party[3]
$game_variables[45]=$Trainer.party[4]
$game_variables[45]=$Trainer.party[5]

Later this?
$Trainer.party.detele_at(0)
$Trainer.party.detele_at(1)
$Trainer.party.detele_at(2)
$Trainer.party.detele_at(3)
$Trainer.party.detele_at(4)
$Trainer.party.detele_at(5)

And finally would it have to put this?
$Trainer.party[0]=$game_variables[45]
$Trainer.party[1]=$game_variables[45]
$Trainer.party[2]=$game_variables[45]
$Trainer.party[3]=$game_variables[45]
$Trainer.party[4]=$game_variables[45]
$Trainer.party[5]=$game_variables[45]
Reply With Quote
  #5    
Old July 12th, 2012 (01:06 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,070
To remove/save/restore the entire party, just use the simpler:

Code:
$game_variables[42]=$Trainer.party
$Trainer.party=[]

$Trainer.party=$game_variables[42]
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
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:25 PM.