The PokéCommunity

We are still working on a better slogan!

Visit Index

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Random occurences in battles

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.

Post Reply
Thread Tools
Old August 28th, 2013 (10:13 AM).
Alexandre's Avatar
Alexandre Alexandre is offline
Join Date: Mar 2005
Age: 20
Nature: Lonely
Posts: 400
Hey everyone, quick question regarding the battle system in Essentials (and in Pokemon in general I guess). I'm wondering which procedures are entirely or partly random and/or rely on probability calculations. I am aware of critical hits, and move effects like confusion, paralysis, burn etc etc but I was wondering if there are any others. It's been a while since I've messed with Essentials or even played Pokemon so it would be a big help. Cheers.
Old August 28th, 2013 (05:51 PM).
dexter1o6 dexter1o6 is offline
Join Date: Jul 2013
Age: 27
Gender: Male
Posts: 64
You can start reading here:

For starters, look under 'Other' --> 'Randomization adjustment'

This should be all you need, except that I cannot tell you what is actually implemented in Pokemon Essentials (I would have to test it or at least read through the scripts. But you can do that, right?)
Old September 1st, 2013 (04:36 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
Join Date: Sep 2010
Gender: Male
Posts: 1,407
Generally uses this method:

def pbRandom(x)
  return rand(x)
rand ranges from 0...x

Critical hit are done using 'pbIsCritical?' method. Some effects durations like confusion are setted when the pokémon become confused.
Post 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 10:24 AM.

About Us
© 2002 - 2014 The PokéCommunity™, 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é 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. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.