The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.


Advertise here

Reply
 
Thread Tools
  #1    
Old March 26th, 2012, 02:41 PM
mewt_90's Avatar
mewt_90
Beginning Trainer
 
Join Date: Oct 2010

Advertise here
Hello,
recently I downloaded the latest version of "Pokemon Essentials XP" and I tried to insert new move effects. Unfortunately, they didn't work because when tried to test them, simply NOTHING happend in the game. The idea was a move that should change the user's attack to 3 (150%) and I mean exactly 3! No matter which stage it had before.

Here is the code I wrote down in PokeBattle_MoveEffects:

Spoiler:

class PokeBattle_Move_126 < PokeBattle_Move
def pbEffect(attacker,opponent)

@battle.pbAnimation(@id,attacker,nil)
@battle.pbCommonAnimation("StatUp",attacker,nil)

attacker.stages[PBStats:PEED]=3

@battle.pbDisplay(_INTL("{1}'s Attack sharply rose!",attacker.pbThis))
end
end


What could be the reason for this?
Reply With Quote
  #2    
Old March 26th, 2012, 05:01 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
That code looks fine in principle. What you mean by "nothing happened" is up for debate - did the move otherwise execute normally but there was no message/stat up animation/stat change, or did the game freeze, or was that move skipped over?

All I can guess, from what information you've provided, is that you haven't given the move that function code in moves.txt. Well, that or you didn't return 0 at the end of the def (it's probably important to do so). I'm sure you're comparing your code to PokeBattle_Move_01F, which is similar.

Perhaps you should improve your code by checking the Speed stage before the change, and either stat up, stat down (drastically/sharply/normally for both) or do nothing depending on the value.
__________________
Reply With Quote
  #3    
Old March 27th, 2012, 12:46 AM
mewt_90's Avatar
mewt_90
Beginning Trainer
 
Join Date: Oct 2010
The move was just skipped over. There was neither an animation a stat-up nor a text.
I've implemented "return 0" but still there is no change.

Here is the move I tried out:
Spoiler:

560,TRANSFORMATION,Transformation,126,0,NORMAL,Status,100,30,0,40,1,,Smart,"Testing"
__________________
German Pokemon Elite
My Thread
Reply With Quote
  #4    
Old March 27th, 2012, 03:46 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
When adding your own function codes, start with PokeBattle_Move_133, because Shadow moves use up 126-132. You should do this even if you don't use Shadow moves, because they're already defined.

I used exactly your code (albeit with code 133), and it worked for me. I don't know why it isn't for you.
__________________
Reply With Quote
  #5    
Old March 29th, 2012, 04:35 PM
mewt_90's Avatar
mewt_90
Beginning Trainer
 
Join Date: Oct 2010
I've tried it again with different numbers and now it works fine! Thanks

Another question: The window of the Essential Kit is pretty huge. How can I change the window size and i do not mean the screenwidth! I searched for some hints in the script but i didn't find any. The window size should just be a smaller one so the the graphic is more defined.
__________________
German Pokemon Elite
My Thread
Reply With Quote
  #6    
Old March 30th, 2012, 11:45 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
I'm not sure what you mean. If you mean the zoom factor to make it overall smaller (and less pixellated), that setting is right next to the screen size settings in the scripts. It's the difference between 480x320 and 240x160.

If you meant something else, please clarify.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:33 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.