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

Coding Question.

~Angel~

Lead developer for Pokémon Millennium
281
Posts
14
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
     

    FL

    Pokémon Island Creator
    2,450
    Posts
    13
    Years
    • Seen yesterday
    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
     

    ~Angel~

    Lead developer for Pokémon Millennium
    281
    Posts
    14
    Years
  • 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