- 13
- Posts
- 11
- Years
- Seen Jul 11, 2014
Hey guys :)
Over the course of the last few hours, I've been frantically trying to add a few new abilities to the game. Among them is Multi-Strike, an ability that has every move the user uses occur twice in a row. To implement it into the game, I wrote (in PokeBattle -- Move):
My problem is that the game begins to glitch out as soon as a Pokemon with Multi-Strike attacks: moves immediately stop having effects (as in, the message that they are being used is shown, but nothing else happens).
Can some of you script-jockeys untangle this and tell me how to implement this the right way? :)
Over the course of the last few hours, I've been frantically trying to add a few new abilities to the game. Among them is Multi-Strike, an ability that has every move the user uses occur twice in a row. To implement it into the game, I wrote (in PokeBattle -- Move):
def pbIsMultiHit # not the same as pbNumHits>1
if isConst?(attacker.ability,PBAbilities,:MULTISTRIKE)
return true
end
return false
end
def pbNumHits
if isConst?(attacker.ability,PBAbilities,:MULTISTRIKE)
return 2
end
return 1
end
My problem is that the game begins to glitch out as soon as a Pokemon with Multi-Strike attacks: moves immediately stop having effects (as in, the message that they are being used is shown, but nothing else happens).
Can some of you script-jockeys untangle this and tell me how to implement this the right way? :)
Last edited: