• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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] Shadow-like Pokemon Alt Sprites Question

  • 1,799
    Posts
    8
    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