• 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!
  • 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.

Coding Question.

~Angel~

Lead developer for Pokémon Millennium
  • 281
    Posts
    15
    Years
    This was my first time acctually making and learning code. So does anyone think they could help me figure out if maybe this code could work if I finish it? I know it's been done like maybe 1 time before by FL and I used a piece of his script and modified it. I dunno if maybe it will work but how does this look? I don't know the code to display the players party sadly. But I do want to figure it out eventually. This is something I did in school. Any thing to say will be taken and used to fix this and make it better.

    Code:
    def pbHallOfFame
    if $game_switches[97]
    Call HallOfFame
    pbAddSprite("partybase1",-200,yvalue,"Graphics/Pictures/HallOfFameBG",@viewport)
      @sprites["partybase1"].visible=true
      @partyAnimPhase=0
    end
    def Call PlayerParty
    pbPartyDisplay
    end
    @scene.partyAnimation
       else
         # You can change the time delay for double/Set Option here
         timedelay=64 # Set Option
         for i in 0...timedelay
           @scene.pbGraphicsUpdate
         end
       end
    opponent=pbGetOwner(index)
         # You can change the time delay for double/Set Option here
         timedelay=64 # Set Option
         for i in 0...timedelay
           @scene.pbGraphicsUpdate
         end
       end
     
    Showing the player party (you need the @sprites and @viewport set and define a formula to xpoint and ypoint):

    Code:
    for i in 0...$Trainer.party.size
      @sprites["pokemon#{i}"]=PokemonSprite.new(@viewport)
      @sprites["pokemon#{i}"].setPokemonBitmap($Trainer.party[i])
      pbPositionPokemonSprite(@sprites["pokemon#{i}"],xpoint,ypoint)
    end
    Tip: Use a indent style
     
    Showing the player party (you need the @sprites and @viewport set and define a formula to xpoint and ypoint):

    Code:
    for i in 0...$Trainer.party.size
      @sprites["pokemon#{i}"]=PokemonSprite.new(@viewport)
      @sprites["pokemon#{i}"].setPokemonBitmap($Trainer.party[i])
      pbPositionPokemonSprite(@sprites["pokemon#{i}"],xpoint,ypoint)
    end
    Tip: Use a indent style

    Thanks FL :D I will look at that :)
     
    Back
    Top