- 30
- Posts
- 10
- Years
- Age 26
- Seen Mar 25, 2017
I can't seem to get this weather to do what I want it to do.
I want this weather to strike only Pokemon without the DARK or WATER types, Pokemon without the Tornado Watch and Overcoat Abilities, Pokemon that aren't digging or diving, or Pokemon without Safety Goggles. The script does squat in the game. Are there any suggestions to go about fixing it?
Code:
when PBWeather::TORNADO
@weatherduration=@weatherduration-1 if @weatherduration>0
if @weatherduration==0
pbDisplay(_INTL("The winds died down."))
@weather=0
else
pbCommonAnimation("Tornado",nil,nil)
pbDisplay(_INTL("The winds are howling!"));
if pbWeather==PBWeather::TORNADO
for i in priority
next if i.hp<=0
if !i.pbHasType?(:DARK) && !i.pbHasType?(:WATER) &&
!isConst?(i.ability,PBAbilities,TORNADOWATCH) &&
!isConst?(i.ability,PBAbilities,:OVERCOAT) &&
![0xCA,0xCB].include?(PBMoveData.new(i.effects[PBEffects::TwoTurnAttack]).function) &&
!isConst?(i.item,PBItems,:SAFETYGOGGLES)
pbDisplay(_INTL("{1} was struck by debris!",i.pbThis))
@scene.pbDamageAnimation(i,0)
i.pbReduceHP((i.totalhp/8).floor)
if i.hp<=0
return if !i.pbFaint
end
end
end
end
end
I want this weather to strike only Pokemon without the DARK or WATER types, Pokemon without the Tornado Watch and Overcoat Abilities, Pokemon that aren't digging or diving, or Pokemon without Safety Goggles. The script does squat in the game. Are there any suggestions to go about fixing it?