- Pokémon Essentials Version
- v16.2 ➖
Hello everyone, today I bring you a script to be able to give states such as poison or burned out of battle, to use it in gyms etc,
It is very simple (it is the maximum I can do xD) but can be useful :D
If you find some mistake tell me, I just translated it into English from Spanish and may have passed something :P
It is very simple (it is the maximum I can do xD) but can be useful :D
If you find some mistake tell me, I just translated it into English from Spanish and may have passed something :P
Code:
#This script must be above main, to call each state put this in a "Call Script":
# Burn: burn_team
# Sleep: sleep_team
# Poison: posion_team
# Paralysis: paralysis_team
# Damage: damage_team(x) # In the x Put the percentage
#
#Burn
def burn_team
for i in 0...$Trainer.party.length
$Trainer.party[i].status = PBStatuses::BURN
end
end
#Sleep
def sleep_team
for i in 0...$Trainer.party.length
$Trainer.party[i].status = PBStatuses::SLEEP
end
end
#Poison
def poison_team
for i in 0...$Trainer.party.length
$Trainer.party[i].status = PBStatuses::POISON
end
end
#Paralysis
def paralysis_team
for i in 0...$Trainer.party.length
$Trainer.party[i].status = PBStatuses::PARALYSIS
end
end
#Damage
def dañar_equipo(percentage)
for i in 0...$Trainer.party.length
calc = ($Trainer.party[i].hp * (percentage / 100.0)).floor
$Trainer.party[i].hp = calc
end
end
- Credits
- xPokejosex
Clara Dragon ( For optimizing the script)