- 31
- Posts
- 9
- Years
- Seen Dec 18, 2017
So, I'm new to this for the most part. I ask that you take that into consideration.
But getting strait into the matter at hand,
The first new ability in my game is called "Tranquilize" it is a "Flame Body" clone with the goal of it putting the opponent asleep instead.
That is the code I used in script. What am I doing wrong?
But getting strait into the matter at hand,
The first new ability in my game is called "Tranquilize" it is a "Flame Body" clone with the goal of it putting the opponent asleep instead.
Code:
user.pbBurn(target,_INTL("{1}'s {2} burned {3}!",target.pbThis,
PBAbilities.getName(target.ability),user.pbThis(true)))
end
if target.hasWorkingAbility(:Tranquilize,true) && @battle.pbRandom(10)<3 &&
user.pbCanSleep?(nil,false)
PBDebug.log("[Ability triggered] #{target.pbThis}'s Tranquilize")
user.pbSleep(target,_INTL("{1}'s {2} put to sleep {3}!",target.pbThis,
PBAbilities.getName(target.ability),user.pbThis(true)))
end
if target.hasWorkingAbility(:MUMMY,true) && !user.fainted?
if !isConst?(user.ability,PBAbilities,:MULTITYPE) &&
!isConst?(user.ability,PBAbilities,:STANCECHANGE) &&
!isConst?(user.ability,PBAbilities,:MUMMY)
That is the code I used in script. What am I doing wrong?
Last edited: