- 19
- Posts
- 5
- Years
- Seen Jul 21, 2022
I am hoping to create a move that is two-turned. On the first turn, it waits. On the second turn, only if the pokemon using the move is not hit, it hits with a high damage. I am very bad at coding stuff, but I attempted to combine two existing moves; Solar Beam and Focus Punch:
---
class PokeBattle_Move_19C < PokeBattle_TwoTurnMove
def pbChargingTurnMessage(user,targets)
@battle.pbDisplay(_INTL("{1} tucked in its head!",user.pbThis))
end
def pbChargingTurnEffect(user,target)
super if !user.effects[PBEffects::FocusPunch] || user.lastHPLost==0
end
def pbMoveFailed?(user,targets)
if user.effects[PBEffects::FocusPunch] && user.lastHPLost>0
@battle.pbDisplay(_INTL("{1} lost its focus and couldn't move!",user.pbThis))
return true
end
return false
end
end
end
742,GLADIATOR,19C,200,FIGHTING,Physical,100,10,0,NearOther,0,abef,"Testing."
---
The move is applyable in game while playtesting, and it is fighting type, but it is just doing a one turn move with no effects, sort of like tackle. If anyone knows what could be wrong with my methods (I'm sure that there are a lot of problems), any help would be greately appreciated!
---
class PokeBattle_Move_19C < PokeBattle_TwoTurnMove
def pbChargingTurnMessage(user,targets)
@battle.pbDisplay(_INTL("{1} tucked in its head!",user.pbThis))
end
def pbChargingTurnEffect(user,target)
super if !user.effects[PBEffects::FocusPunch] || user.lastHPLost==0
end
def pbMoveFailed?(user,targets)
if user.effects[PBEffects::FocusPunch] && user.lastHPLost>0
@battle.pbDisplay(_INTL("{1} lost its focus and couldn't move!",user.pbThis))
return true
end
return false
end
end
end
742,GLADIATOR,19C,200,FIGHTING,Physical,100,10,0,NearOther,0,abef,"Testing."
---
The move is applyable in game while playtesting, and it is fighting type, but it is just doing a one turn move with no effects, sort of like tackle. If anyone knows what could be wrong with my methods (I'm sure that there are a lot of problems), any help would be greately appreciated!
Last edited by a moderator: