- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
My goal is to edit the code that runs when a Pokemon is poisoned, so it will check if the foe is Poison Type and replace the ordinary poison effect with Toxic Poison if this is true.
def pbPoison(user = nil, msg = nil, toxic = false)
pbInflictStatus(:POISON, (toxic) ? 1 : 0, msg, user)
end
I need to turn it into this
def pbPoison(user = nil, msg = nil, toxic = false)
If FoeType=Poison
pbInflictStatus(:TOXIC)
If FoeType!=Poison
pbInflictStatus(:Poison)
end
When this code is functional, I will then proceed to make Toxic and the Toxic Orb inflict ordinary poison.
This change to the code of Pokemon ensures Poison-types gain a unique niche as the ONLY types able to inflict toxic-poison, AND the type guaranteed to inflict it with ANY method they have to poison the foe (even by Tricking a Toxic Orb onto the foe), so you'll never have to experience a poison-type STAB move accidentally inflicting normal-poison when you wanted to toxic-poison the foe.
def pbPoison(user = nil, msg = nil, toxic = false)
pbInflictStatus(:POISON, (toxic) ? 1 : 0, msg, user)
end
I need to turn it into this
def pbPoison(user = nil, msg = nil, toxic = false)
If FoeType=Poison
pbInflictStatus(:TOXIC)
If FoeType!=Poison
pbInflictStatus(:Poison)
end
When this code is functional, I will then proceed to make Toxic and the Toxic Orb inflict ordinary poison.
This change to the code of Pokemon ensures Poison-types gain a unique niche as the ONLY types able to inflict toxic-poison, AND the type guaranteed to inflict it with ANY method they have to poison the foe (even by Tricking a Toxic Orb onto the foe), so you'll never have to experience a poison-type STAB move accidentally inflicting normal-poison when you wanted to toxic-poison the foe.