• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Resource icon

Give states such as poison or burned out of battle. 2017-06-09

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


Code:
Expand Collapse Copy
#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)
Author
xPokejosex
Views
1,090
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top