The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Members List
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices


Huy567 Huy567 is offline

The Shadow Feather

Visitor Messages

Showing Visitor Messages 1 to 10 of 11
  1. Huy567
    1 Week Ago 07:14 AM
    Huy567
    Thanks XP that makes life easier

  2. DoesntKnowHowToPlay
    2 Weeks Ago 03:39 PM
    DoesntKnowHowToPlay
    You would calculate the result of [(a * X(n)) + c] (which you described accurately), divide that by m, and then take the *remainder* as the value of X(n+1).

  3. Huy567
    2 Weeks Ago 02:59 PM
    Huy567
    so like in this equation: Xn+1 = [(a * Xn) + c] mod m, it would be Xn plus one equals Xn multiplied by "a" and then added to "c" and the result of [(a * Xn) + c] would be divided by m, right?

    and i know what you mean. i got this like 4 hours later XP

  4. DoesntKnowHowToPlay
    2 Weeks Ago 10:59 AM
    DoesntKnowHowToPlay
    Sorry for late response, PC is bad at notifications >_<

    Mod (or modulus), often represented with "%", is the remainder you'd get if you divided the first number by the second. A few simple examples:

    30 % 3 = 0
    31 % 3 = 1
    32 % 3 = 2
    33 % 3 = 0
    30 % 4 = 2
    31 % 4 = 3
    32 % 4 = 0
    32 % 4 = 1

    XOR and AND are boolean operators; it'd probably be a good idea to look up boolean logic as it's a bit detailed to explain via PMs. XOR returns true if one argument or the other is true, but false if they're the same. AND returns true only if both arguments are true. You'll also want to be familiar with OR, which returns true if either argument is true. In assembly, these are usually applied between on a bitwise basis, so you get operations like this:

    x0011 AND x0110 = x0010

  5. DoesntKnowHowToPlay
    2 Weeks Ago 05:27 PM
    DoesntKnowHowToPlay
    First, do you have any actual programming experience? Your questions don't make a lot of sense.

    Don't do Multitype first. It's not worth the amount of effort it'll take. Trust me. Don't even talk about it as there's multiple ways to do it (none of which are straightforward) and thus no sense trying to use it as a frame of reference.

    Code does not branch from structs, nor is it typically stored in them. A struct is a block of data- you do not under normal circumstances execute structs as code.

    I don't know where the ability name and description tables are off the top of my head. You should be able to find them yourself with a hex editor and any tool for inserting text into the ROM- XSE will work for this.

    You can't decompile THUMB ASM without manually going through it, to my knowledge. You can use VBA's disassembler to look at it, though. There's also a partial FR disassembly floating around, but with emphasis on the partial, sadly.

  6. DoesntKnowHowToPlay
    2 Weeks Ago 03:55 PM
    DoesntKnowHowToPlay
    There's two main kinds of pokemon data: pokemon structs and battle structs. The former represents a pokemon in your party, and has all of its persistent information; the latter represents it in battle and has most of its battle-pertinent information. The Pokemon struct only stores a single bit for ability, indicating which of its species' abilities it has; battle structs store the ability byte outright, and change to accommodate effects like Trace and Skill Swap. Usually, you want the latter struct- it's documented in the old JPAN thread I was talking about.

    A special case is a branch in code for one specific case, and is how the majority of abilities are handled. For example, there's some code in the game that if decompiled would look something like:

    if(pokemon.ability == ABIL_NATURALCURE)
    pokemon.status = 0;

    This is in opposition to the standardization you see with most moves, where Flamethrower has a 10% chance of inflicting burn because its battle script rolls against its proc rate, which is defined in a table.

  7. DoesntKnowHowToPlay
    2 Weeks Ago 06:38 AM
    DoesntKnowHowToPlay
    Yes.

  8. DoesntKnowHowToPlay
    2 Weeks Ago 02:41 PM
    DoesntKnowHowToPlay
    Pretty much all the ability checks are special cases, so what ASM knowledge you need depends on which ones you're going for. If you're new to hacking, I'd suggest starting by expanding the ability name and description tables. If you can pull that off, go look up Hackmew's tutorial on ASM; it'll teach you most of what you need to know. Also dig up JPAN's old thread on battle scripts; it's short, but his posts are immensely useful.

  9. Huy567
    2 Weeks Ago 01:50 PM
    Huy567
    Yes, actually :3

  10. mrtienduc1999
    2 Weeks Ago 01:34 PM
    mrtienduc1999
    OMG, are you from vie???

About Me

  • About Huy567
    Biography
    Uhm...I like anime and all things Japanese. I got into Rom hacking a while back, and so now I'm thinking about making my own hack again.
    Interests
    I love singing and drawing. Nature addict.
    Location
    Texas, US
    Gender
    Male ♂
    Occupation
    Student :D
    Also Known As
    Dexter
    Favorite Pokémon
    Flygon
    Blaziken
    Swampert
    Articuno
    Lugia
    Haxorus
    Hydreigon

Statistics

Total Posts
Activity by Forum
Visitor Messages
Blog
General Information
  • Last Activity: 1 Day Ago 08:33 AM
  • Join Date: July 7th, 2014
  • Referrals: 0

Friends

Showing Friends 1 to 1 of 1

All times are UTC -8. The time now is 11:10 PM.


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.