• 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.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • 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.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

[Scripting Question] Shadow-like Pokemon Alt Sprites Question

  • 1,802
    Posts
    9
    Years
    Hey!

    So I was looking at Vendily's example here here on how to base alt sprites given a new glitchiness. It is a new thing attached to a pokemon that has all sorts of wacky features. At any rate, I defined them like a shiny pokemon in PokeBattle_Battler as such:

    Code:
      def isGlitchmon?
        return @glitchmon if @glitchmon!=nil
        glitx = @glitchnum
        return  glitx< GLITCHMONCHANCE*($Trainer.numbadges+1)
      end
      
        def makeGltichy
        @glitchmon=true
      end
    
        def makeNotGlitchy
        @glitchmon=false
      end

    with
    Code:
    @glitchnum = rand(200)
    @gltchmon = nil

    defined in def intialize.


    In PSystem_FileUtilities, here is the script. I've pasted the relevant script section within the spoiler.

    Spoiler:

    I have a sprite 001_glitch, 001g, for testing and they all return the default one on a glitchy bulbasaur (they have a unique typing so it is easy to tell whether or not they're glitchmons)
     
    Last edited:
    Back
    Top