The PokéCommunity Forums Huy567's Profile
 User Name Remember Me? Password

 Notices The 25 Days of Gaming is almost over, folks! Head over to Video Games because we have some great things planned for the final few days!

# Huy567

## The Shadow Feather

#### Visitor Messages

Showing Visitor Messages 1 to 10 of 11
1. July 17th, 2014 07:14 AM
Huy567
Thanks XP that makes life easier

2. July 16th, 2014 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. July 16th, 2014 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. July 16th, 2014 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. July 13th, 2014 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. July 13th, 2014 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. July 13th, 2014 06:38 AM
DoesntKnowHowToPlay
Yes.

8. July 12th, 2014 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. July 12th, 2014 01:50 PM
Huy567
Yes, actually :3

10. July 12th, 2014 01:34 PM
mrtienduc1999
OMG, are you from vie???

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: August 2nd, 2014 07:17 AM
• Join Date: July 7th, 2014
• Referrals: 0

#### Friends

Showing Friends 1 to 1 of 1
•  Indigo The Novelist from Panju

All times are UTC -8. The time now is 05:00 AM.

 -- Modular [Prerelease] ---- Black 2 -- [ WIP ] Mobile Skin -- PokéCommunity 1.5 Default [Test] ---- Let's Fly Together -- vBulletin Default -- PokéLink -- PokéLink 2.0 -- Style'd! -- Poké Link 3 ---- Poké Link 3 Grape Juice Blend ---- Poké Link 3 Red Cocktail -- Dawn of Champions -- Plusle's Play Date -- Chromatic ---- Chromatic 2.0 -- Midnight Misty Revived -- Green's Ivy 2008 ---- Red's Flame 2008 -- Ledian's Knockout! -- Yellow and the Pichu Bros. -- Team Magma's Passion -- PokéSpecial Adventures -- Trick or Treat -- Ash's Big Test -- Quilava's Glaciation -- PokeRangers -- Entering of the Rangers -- PokéRevolution ---- PokéRevolution 2.0 -- Autumn Always -- Winter Friends -- Dialga VS Palkia [BROKEN] -- 10th Anniversary Pocket Monsters -- PokéCommunity Pro ---- PC Pro - Blue Edition ---- PC Pro - Green Edition ---- PC Pro - Special Purple Edition -- Azure Fantasy -- Blossom Shower -- Squareline -- Unseen Forces -- Darkness Prevails Once More -- Caramel Sentret -- Forever Standing -- PokeGeneric2 -- Let's Get This Party Startered -- Seeds of Platinum -- Bewitched -- Ampharos' Starry Night -- PCWii -- Poké Link 4 Pink ---- Poké Link 4 Blue -- Delibird's Delivery -- Pawlicious -- Infernal Smash ---- Infernal Smash (fixed width) -- Conway -- Final Resistance -- The Golden Girl -- Sinnoh Springs ---- Sinnoh Springs Reduced -- Pichu² -- The Plaza -- The Pokéthletes ---- Inverted -- Route 167 ---- Route 167+ -- Sweet Kisses -- Generation² -- Begin, Again -- Dimensional Rift -- The Johto Elite -- slooooowpooooke -- Unova's Violet Masquerade -- Generation InVerse -- Flames of Simplicity -- PokeCommunity Black Version ---- PokeCommunity White Version -- The Stand Nexus -- The Top Dog -- Stunfisk'd -- Nimbasa's Shining Beauty -- Atop Mount Coronet -- Kanto Dream Party -- REBOOT.BW -- PokéBok -- Forest Savage -- Hypno's Lullaby -- Let's Fly Together [Legacy] -- Volcarona Pour Toujours -- The Y-Axis -- Color Flattered X ---- Color Flattered Y ---- Color Flattered ORAS ------ Color Flattered ORAS Standard -- Fundamental -- Garchompin' -- Inflicted One ---- Inflicted One+ -- Sky High Contact Us - Archive - Privacy Statement - Terms of Service - Top

Style by Nymphadora, artwork by Sa-Dui.
© 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.