The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Coding Question.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old September 28th, 2012 (8:39 AM).
~Angel~'s Avatar
~Angel~ ~Angel~ is offline
Lead developer for Pokémon Millennium
     
    Join Date: Mar 2010
    Location: United States Of America.
    Age: 19
    Gender: Male
    Nature: Quiet
    Posts: 284
    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
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 30th, 2012 (10:59 AM).
    FL's Avatar
    FL FL is offline
    Pokémon Island Creator
       
      Join Date: Sep 2010
      Gender: Male
      Posts: 1,687
      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
      __________________
      Reply With Quote
        #3    
      Old October 1st, 2012 (4:32 AM).
      ~Angel~'s Avatar
      ~Angel~ ~Angel~ is offline
      Lead developer for Pokémon Millennium
         
        Join Date: Mar 2010
        Location: United States Of America.
        Age: 19
        Gender: Male
        Nature: Quiet
        Posts: 284
        Quote:
        Originally Posted by FL . View Post
        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
        Reply With Quote
        Reply
        Quick Reply

        Sponsored Links
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 12:01 AM.