Room Service causes your speed to slow down when Trick Room is enabled
is an item shown in this trailer for pokemon Sword and Shield
https://www.youtube.com/watch?v=uaF9iJ9bzUM
this is the error
![[PokeCommunity.com] Help to make Room Service. [PokeCommunity.com] Help to make Room Service.](https://data.pokecommunity.com/attachments/10/10236-afe9282e3bca30475316f88fa285515a.jpg)
this is the Script I put under Sticky Barb in the PokeBattle_Battle Script on the end of round.
# ROOMSERVICE
if i.hasWorkingItem(:ROOMSERVICE) && @field.effects[PBEffects::TrickRoom]>0
if self.pbCanReduceStatsStage?(PBStats::SPEED,self,false,self)
self.pbReduceStat(PBStats::SPEED,1,self,false,self,showanim)
showanim=false
end
showanim=true
pbDisplay(_INTL("Your Speed lowers"))
PBDebug.log("[Item triggered] #{i.pbThis}'s Room Service")
end
##################################################
Sorry for the bad english i used google translate.
is an item shown in this trailer for pokemon Sword and Shield
https://www.youtube.com/watch?v=uaF9iJ9bzUM
this is the error
![[PokeCommunity.com] Help to make Room Service. [PokeCommunity.com] Help to make Room Service.](https://data.pokecommunity.com/attachments/10/10236-afe9282e3bca30475316f88fa285515a.jpg)
this is the Script I put under Sticky Barb in the PokeBattle_Battle Script on the end of round.
# ROOMSERVICE
if i.hasWorkingItem(:ROOMSERVICE) && @field.effects[PBEffects::TrickRoom]>0
if self.pbCanReduceStatsStage?(PBStats::SPEED,self,false,self)
self.pbReduceStat(PBStats::SPEED,1,self,false,self,showanim)
showanim=false
end
showanim=true
pbDisplay(_INTL("Your Speed lowers"))
PBDebug.log("[Item triggered] #{i.pbThis}'s Room Service")
end
##################################################
Sorry for the bad english i used google translate.