• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Help to make Room Service.

17
Posts
5
Years
  • 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
    Screenshot_3.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.
     
    Back
    Top