• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] [HELP-ME] nobody was able to help me

I really need to make a new evolution method that combines level and item. I want my Charmeleon for example to evolve as follows; at level 36, holding a FIRESTONE. For example. this would look like PBS like this: Evolutions = CHARIZARD, New Evolution Method, 36, FIRESTONE. I NEED SOMETHING SO MUCH, it is very important. VERY SAME AND NO ONE HAS BEEN ABLE TO DO. You will be worthy of many credits if you succeed!
 
In module PBEvolution, add
EvolItem = 64 # You can change 64, example: the last line, there is TradeSpecies = 59, so you change it into 60
change
def self.maxValue; return 64; end # 64 is maximum, example: your max is 60, so, you change 64 into 60

Next, put it above main or below evolution method
Code:
$evolve=false
PBEvolution.register(:EvolItem, {
  "parameterType" => :PBItems,
  "levelUpCheck"  => proc { |pkmn, parameter|
  (0...EvolutionLvlAItem.length).each{|i|  
  if pkmn.isSpecies?(EvolutionLvlAItem[i][0]) && pkmn.level>=EvolutionLvlAItem[i][1]
    $evolve = true
    break
  end}
  if $evolve
    next pkmn.item == parameter
  else
    next false
  end
  },
  "afterEvolution" => proc { |pkmn, new_species, parameter, evo_species|
    next false if evo_species != new_species || !pkmn.hasItem?(parameter)
    $evolve=false if $evolve
    pkmn.setItem(0)   # Item is now consumed
    next true
  }
})

And finally, add above Main or in Setting
Code:
EvolutionLvlAItem = [
[:CHARMELEON,36]
]

You can put after that this line [:CHARMELEON,36], but remember add , and set it like this [form before evolution, level]

Set in txt, Evolutions=CHARIZARD,EvolItem,FIRESTONE

Done!
 
In module PBEvolution, add
EvolItem = 64 # You can change 64, example: the last line, there is TradeSpecies = 59, so you change it into 60
change
def self.maxValue; return 64; end # 64 is maximum, example: your max is 60, so, you change 64 into 60

Next, put it above main or below evolution method
Code:
$evolve=false
PBEvolution.register(:EvolItem, {
  "parameterType" => :PBItems,
  "levelUpCheck"  => proc { |pkmn, parameter|
  (0...EvolutionLvlAItem.length).each{|i|  
  if pkmn.isSpecies?(EvolutionLvlAItem[i][0]) && pkmn.level>=EvolutionLvlAItem[i][1]
    $evolve = true
    break
  end}
  if $evolve
    next pkmn.item == parameter
  else
    next false
  end
  },
  "afterEvolution" => proc { |pkmn, new_species, parameter, evo_species|
    next false if evo_species != new_species || !pkmn.hasItem?(parameter)
    $evolve=false if $evolve
    pkmn.setItem(0)   # Item is now consumed
    next true
  }
})

And finally, add above Main or in Setting
Code:
EvolutionLvlAItem = [
[:CHARMELEON,36]
]

You can put after that this line [:CHARMELEON,36], but remember add , and set it like this [form before evolution, level]

Set in txt, Evolutions=CHARIZARD,EvolItem,FIRESTONE

Done!

Thanks for that, but I did exactly as I said, and charmeleon simply doesn't evolve with stone at level 36.
NOT ABLE appears
 
Thanks for that, but I did exactly as I said, and charmeleon simply doesn't evolve with stone at level 36.
NOT ABLE appears

Because in the first post, you said: evolve as follows; at level 36, holding a FIRESTONE, so, you must hold it not use.
 
Back
Top