• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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
    6
    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
    [PokeCommunity.com] Help to make Room Service.

    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