Giving 2 abilities per Pokémon means to change the metagame. In addition it's a lot of work to do.
Making an ability like Pixilate for fire type includes that you take Pixilate code and you edit it.
In PokémonBattle_Move script, in "Calculate base power of moves" section, after IRON FIST ability, add this:
if type==0 && attacker.hasWorkingAbility(:YOURABILITY)
type=getConst(PBTypes,:FIRE) || 0
damagemult=(damagemult*1.3).round
end
Replace "YOURABILITY" with the new ability INTERNAL NAME.
The new ability worked.
I was trying to make a dual type attack like flying press, i copy flying press code and change it to the type i wanted but it doesn't worked.
i copied this
if @id==getID(PBMoves,:FLYINGPRESS)
atype2=getConst(PBTypes,:FLYING)
secondarymod_1=PBTypes.getEffectiveness(atype2,otype1,@battle.inverse)
secondarymod_2=PBTypes.getEffectiveness(atype2,otype2,@battle.inverse)
secondarymod_3=(otype3==nil)? 2 : PBTypes.getEffectiveness(atype2,otype3,@battle.inverse)
else
secondarymod_1=2
secondarymod_2=2
secondarymod_3=2
end
what i'm doing wrong?
If you haven't added the third type on Battlers, the game doesn't work.
Yep.
im new to pokefourms and im also new to adding new abilites i was just wondering exactly how u would go about it step by step because im confused as how to where to put the code where to even start and how u got there so if there is any kind soul to help me with this ill greatly appreciate it