- 51
- Posts
- 10
- Years
- Seen Jan 8, 2023
Hello Guys!
I have two questions for you. Actually i'm using the 17.2 version and i have some problem with "Mega Evolution" Script. I would like to add Ultra-Necrozma and Greninja Ash but i have these problems:
Greninja-Ash.
First i add in Compiler this line
Then i wrote in MegaEvolution
The problem is that the Mega Evolution not start. (I wrote in pokemonsform.txt)
Ultra Necrozma
in Mega Evolution i wrote this:
The problem is when the battle ends, returns in the form 0 and not in 1/2 form. Can you help me?
I have two questions for you. Actually i'm using the 17.2 version and i have some problem with "Mega Evolution" Script. I would like to add Ultra-Necrozma and Greninja Ash but i have these problems:
Greninja-Ash.
First i add in Compiler this line
Spoiler:
"MegaAbility" => [59,"E",PBAbilities]
Then i wrote in MegaEvolution
Spoiler:
if !itemonly
pbDexDataOffset(dexdata,i,59)
megaability = dexdata.fgetw
if megaability>0 && self.hasWorkingAbility?(megaability)
ret = i; break
end
end
pbDexDataOffset(dexdata,i,59)
megaability = dexdata.fgetw
if megaability>0 && self.hasWorkingAbility?(megaability)
ret = i; break
end
end
The problem is that the Mega Evolution not start. (I wrote in pokemonsform.txt)
Ultra Necrozma
in Mega Evolution i wrote this:
Spoiler:
MultipleForms.register(:NECROZMA,{
"getMegaForm"=>proc{|pokemon|
next 3 if isConst?(pokemon.item,PBItems,:ULTRANECROZIUMZ) && pokemon.form==1 || pokemon.form==2
next rand(2)+1 if pokemon.form==3 && !isConst?(pokemon.item,PBItems,:ULTRANECROZIUMZ)
}
})
"getMegaForm"=>proc{|pokemon|
next 3 if isConst?(pokemon.item,PBItems,:ULTRANECROZIUMZ) && pokemon.form==1 || pokemon.form==2
next rand(2)+1 if pokemon.form==3 && !isConst?(pokemon.item,PBItems,:ULTRANECROZIUMZ)
}
})
The problem is when the battle ends, returns in the form 0 and not in 1/2 form. Can you help me?