Registrarse

[RPG - Scripting] Ayuda con la mega evolucion

Estado
Cerrado para nuevas respuestas.

Luisi

Usuario de platino
Hola soy luisi necesito ayuda con algo y es que cuando quiero mega evolucionar a mi pokemon (tengo todo lo necesario insertado) y tengo equipado los objetos (el mega anillo y la mega piedra a mi pokemon) no sale el boton de mega evolucionar y ademas el sprite cambia automaticamente a el de la mega y cuando no tengo equipado el mega anillo ni nada el boton sale pero no hace efecto ayudaaaaa :(
(Uso Essentials 17.2) si alguien tiene la solucion posteela porfaaa :D adios.
 

The Agle532

Usuario de oro
Hola Amigo Pues ami Tambien me paso lo mismo y lo que ise fue esto busque un tutorial
Pero te pasare el script de la mega.

Este es el Script.

################################################################################
# Mega Evolutions and Primal Reversions are treated as form changes in
# Essentials.
################################################################################
class PokeBattle_Pokemon
def getMegaForm(itemonly=false)
formdata = pbLoadFormsData
return 0 if !formdata[@species] || formdata[@species].length==0
ret = 0
dexdata = pbOpenDexData
for i in formdata[@species]
next if !i || i<=0
pbDexDataOffset(dexdata,i,29)
megastone = dexdata.fgetw
if megastone>0 && self.hasItem?(megastone)
ret = i; break
end
if !itemonly
pbDexDataOffset(dexdata,i,56)
megamove = dexdata.fgetw
if megamove>0 && self.hasMove?(megamove)
ret = i; break
end
end
end
dexdata.close
return ret # fSpecies or 0
end

def getUnmegaForm
return -1 if !isMega?
dexdata = pbOpenDexData
pbDexDataOffset(dexdata,self.fSpecies,37)
unmegaform = dexdata.fgetb
dexdata.close
return unmegaform # form number
end

def hasMegaForm?
mf = self.getMegaForm
return mf>0 && mf!=self.species
end

def isMega?
mf = self.getMegaForm
return mf!=self.species && mf==self.fSpecies
end

def makeMega
fsp = self.getMegaForm
if fsp>0
f = pbGetSpeciesFromFSpecies(fsp)[1]
self.form = f
end
end

def makeUnmega
newf = self.getUnmegaForm
self.form = newf if newf>=0
end

def megaName
formname = pbGetMessage(MessageTypes::FormNames,self.fSpecies)
return (formname && formname!="") ? formname : _INTL("Mega {1}",PBSpecies.getName(@species))
end

def megaMessage
dexdata = pbOpenDexData
pbDexDataOffset(dexdata,self.getMegaForm,58)
message = dexdata.fgetb
dexdata.close
return message # 0=default message, 1=Rayquaza message
end





def hasPrimalForm?
v=MultipleForms.call("getPrimalForm",self)
return v!=nil
end

def isPrimal?
v=MultipleForms.call("getPrimalForm",self)
return v!=nil && v==@form
end

def makePrimal
v=MultipleForms.call("getPrimalForm",self)
self.form=v if v!=nil
end

def makeUnprimal
v=MultipleForms.call("getUnprimalForm",self)
if v!=nil; self.form=v
elsif isPrimal?; self.form=0
end
end
end

def hasMegaForm?
v=MultipleForms.call("getMegaForm",self)
return v!=nil
end

def isMega?
v=MultipleForms.call("getMegaForm",self)
return v!=nil && v==@form
end

def makeMega
v=MultipleForms.call("getMegaForm",self)
self.form=v if v!=nil
end

def makeUnmega
v=MultipleForms.call("getUnmegaForm",self)
self.form=v if v!=nil
end

def megaName
v=MultipleForms.call("getMegaName",self)
return (v!=nil) ? v : _INTL("Mega {1}",PBSpecies.getName(self.species))
end

def megaMessage
v=MultipleForms.call("megaMessage",self)
return (v!=nil) ? v : 0 # 0=mensaje por defecto, 1=mensaje de Rayquaza
end



# Primal Reversion #############################################################

MultipleForms.register:)KYOGRE,{
"getPrimalForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:BLUEORB)
next
}
})

MultipleForms.register:)GROUDON,{
"getPrimalForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:REDORB)
next
}
})

MultipleForms.register:)CHARIZARD,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:CHARIZARDITEX)
next 2 if isConst?(pokemon.item,PBItems,:CHARIZARDITEY)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega Charizard X") if pokemon.form==1
next _INTL("Mega Charizard Y") if pokemon.form==2
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:DRAGON) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)BLAZIKEN,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:BLAZIKENITE)
next
}
})

MultipleForms.register:)GYARADOS,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:GYARADOSITE)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega Gyarados") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:DRAGON) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)PIDGEOT,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:pIDGEOTITE)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega Gyarados") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:WATER) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)LUCARIO,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:LUCARIONITE)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega Gyarados") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:WATER) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)BLASTOISE,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:BLASTOISINITE)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega Gyarados") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:WATER) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)VENUSAUR,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:VENUSAURITE)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega Venusaur") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:GRASS) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)ALAKAZAM,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:ALAKAZITE)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega ALAKAZAM") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:GRASS) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})

MultipleForms.register:)MEWTWO,{
"getMegaForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:MEWTWONITEX)
next 2 if isConst?(pokemon.item,PBItems,:MEWTWONITEY)
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0
},
"getMegaName"=>proc{|pokemon|
next _INTL("Mega MEWTWO") if pokemon.form==1
next
},
"getBaseStats"=>proc{|pokemon|
next [78,130,111,100,130,85] if pokemon.form==1
next [78,104,78,100,159,115] if pokemon.form==2
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:GRASS) if pokemon.form==1
next
},
"ability"=>proc{|pokemon|
next getID(PBAbilities,:TOUGHCLAWS) if pokemon.form==1
next getID(PBAbilities,:DROUGHT) if pokemon.form==2
next
},
"weight"=>proc{|pokemon|
next 1105 if pokemon.form==1
next 1005 if pokemon.form==2
next
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})
 
Estado
Cerrado para nuevas respuestas.
Arriba