Hey all!
Recently I downloaded the Aephiex's Ash-Greninja MOD and the only thing that doesn't work is the Water Shuriken modification.
So I tried to edit the base power and fix the number of hits of this move in the PBS File.
I'm totally new to this, but here's what I've done:
1) in Scripts/PokeBattle_MoveEffects, added a new function (the number 999 is defined by me):
################################################################################
# Ash Greninja (Water Shuriken v2)
################################################################################
class PokeBattle_Move_999 < PokeBattle_Move
def pbIsMultiHit
return true
end
def pbNumHits(attacker)
return 3
end
end
2) in Scripts/PBMoves and Scripts/Reborn/PBMoves, added a line after JUDGEMENT, and set the max to 772:
JUDGMENTQMARKS=771
WATERSHURIKEN2=772
def self.getName(id)
return pbGetMessage(MessageTypes::Moves,id) if id < 10000
return PokeBattle_ZMoves::ZMOVENAMES[id-10001]
end
def self.getCount
return 772
end
def self.maxValue
return 772
end
end
3) in Scripts/Reborn/movetext, added the lines:
:WATERSHURIKEN2 => {
:ID => 772,
:name => "Water Shuriken V2",
:function => 0x999,
:type => :WATER,
:category => :special,
:basedamage => 20,
:accuracy => 100,
:maxpp => 20,
:target => :SingleNonUser,
:priority => 1,
:kingrock => true,
:desc => "The user attacks with throwing stars three times in a row. This move always goes first."
},
Then I ran the game in RPGXP, but the move (Water Shuriken V2) wasn't added to the game.
What steps have I missed?
I also tried to edit the code of the original move, but it didn't work too.
Can anyone help me, please?