crissblack
Entrenando duro
buscando en la pagina oficial del essentials encontré esto
si no entendieron aqui esta la pagina
Me podrian explicar como funciona mi ingles es malo y no entiendo mucho lo de los script.
Si el titulo no es detallado o al mensaje le falta algo avísenme para editar.
Giving multiple moves the same effect
You may want to allow several different moves to do the same thing, e.g. let the moves Slash, Leaf Blade and Night Slash also do what Cut does. Rather than copy out all the Cut-related scripts again for each new move, you can instead put in the following modifications:
def Kernel.pbCut
possiblemoves=[:CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH]
if $DEBUG || $Trainer.badges[BADGEFORCUT]
for i in possiblemoves
move=getID(PBMoves,i)
movefinder=Kernel.pbCheckMove(move)
if movefinder
Kernel.pbMessage(_INTL("This tree looks like it can be cut down!\1"))
if Kernel.pbConfirmMessage(_INTL("Would you like to cut it?"))
speciesname=!movefinder ? $Trainer.name : movefinder.name
Kernel.pbMessage(_INTL("{1} used {2}!",speciesname,PBMoves.getName(move)))
pbHiddenMoveAnimation(movefinder)
return true
end
else
Kernel.pbMessage(_INTL("This tree looks like it can be cut down.")) if i==possiblemoves[possiblemoves.length-1]
end
end
else
Kernel.pbMessage(_INTL("This tree looks like it can be cut down."))
end
return false
end
Something similar should be done for the other existing moves. You may need to edit an "Events.onAction" procedure rather than a proper def as above. Basically, just find where the actual effect is handled (not the checks for whether the move could be used or not) and the use messages are shown, and add in the modifications in some way.
You will also need to add in the following two lines of script, below the "CanUseMove" and "UseMove" handlers respectively for Cut (put them at the very bottom of the script section PokemonHiddenMoves for convenience):
HiddenMoveHandlers::CanUseMove.copy
CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH)
HiddenMoveHandlers::UseMove.copy
CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH)
Obviously, the highlighted part will be a list of all the moves that can do what Cut does. These two extra lines allow the move to show up in the party screen menu and to be used from there. All new move effects should have some version of these two lines (just change the move names).
You may want to allow several different moves to do the same thing, e.g. let the moves Slash, Leaf Blade and Night Slash also do what Cut does. Rather than copy out all the Cut-related scripts again for each new move, you can instead put in the following modifications:
def Kernel.pbCut
possiblemoves=[:CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH]
if $DEBUG || $Trainer.badges[BADGEFORCUT]
for i in possiblemoves
move=getID(PBMoves,i)
movefinder=Kernel.pbCheckMove(move)
if movefinder
Kernel.pbMessage(_INTL("This tree looks like it can be cut down!\1"))
if Kernel.pbConfirmMessage(_INTL("Would you like to cut it?"))
speciesname=!movefinder ? $Trainer.name : movefinder.name
Kernel.pbMessage(_INTL("{1} used {2}!",speciesname,PBMoves.getName(move)))
pbHiddenMoveAnimation(movefinder)
return true
end
else
Kernel.pbMessage(_INTL("This tree looks like it can be cut down.")) if i==possiblemoves[possiblemoves.length-1]
end
end
else
Kernel.pbMessage(_INTL("This tree looks like it can be cut down."))
end
return false
end
Something similar should be done for the other existing moves. You may need to edit an "Events.onAction" procedure rather than a proper def as above. Basically, just find where the actual effect is handled (not the checks for whether the move could be used or not) and the use messages are shown, and add in the modifications in some way.
You will also need to add in the following two lines of script, below the "CanUseMove" and "UseMove" handlers respectively for Cut (put them at the very bottom of the script section PokemonHiddenMoves for convenience):
HiddenMoveHandlers::CanUseMove.copy
HiddenMoveHandlers::UseMove.copy
Obviously, the highlighted part will be a list of all the moves that can do what Cut does. These two extra lines allow the move to show up in the party screen menu and to be used from there. All new move effects should have some version of these two lines (just change the move names).
si no entendieron aqui esta la pagina
Me podrian explicar como funciona mi ingles es malo y no entiendo mucho lo de los script.
Si el titulo no es detallado o al mensaje le falta algo avísenme para editar.