Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Coding Question.

Notices
For all updates, view the main page.

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 (08: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: 17
Gender: Male
Nature: Quiet
Posts: 272
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
  #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,409
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 (04: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: 17
Gender: Male
Nature: Quiet
Posts: 272
Quote originally posted by FL .:
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 UTC -8. The time now is 06:13 AM.