Board Thread:Plants vs. Zombies 2/@comment-25546049-20151110204122

So, this is something I'm gonna do when a new update comes out. Since I have decent knowledge in hacking the game, I'll show you what is possible to edit with these new plants. Keep in mind that I'm using an early version, so anything can change.

Primal Peashooter



Starting with Primal Peashooter, here's what I think can be edited.


 * AF 01 is it's sun cost. That's equivalent to 175. This is easy to edit.
 * 96 43 is it's HP. It is equal to a normal plants. This is also easy to edit.
 * A0 40 is it's recharge. This is equal to fast, and also easy to edit.
 * The two Projectile types you see there are the Projectiles PP shoots out. (PrimalPeaPeashooterPea and PrimalPeashooterPlantfoodPea) You can replace these with other projectiles (Like Plasmaball, or even a normal pea).
 * But now the moment you're all waiting for. You see the values "ÍÌÌÌÌÌ.@" and @@" right? Well, those are his attack speed. In hex, these values are "CD CC CC CC CC CC 06 40" and "40 40" respectively. If we change the first value to "š™™™™™õ?" ("9A 99 99 99 99 99 F5 3F" in hex) and the second value to "À?" ("C0 3F" in hex), then Primal Peashooter has the same attack speed as Peashooter!

And that's just the plant himself! What about the projectile?





Going in order of Projectiles listed,


 * The "$2" ("24 32" in hex) is the peas damage. To get this back to the way it is in the 4.1 version, change "32" to a "64".
 * Ofcourse, there's a StunDuration, and it seems to be nerfed in 4.2. (I forgot to mention that when I leaked the plants data, sorry.) By default, it's set to "00 3F". To get it back to the way it is in the 4.1 version, change the "00" to "80".
 * KnockbackChance is the chance that a zombie will get knocked back. It's set to "00 3F" by default, though if you change the "3F" to "40", I believe it guarantees that zombies will be knocked back.
 * KnockbackTime is the amount of time it takes for the zombies to get knocked back if the Knock back effect happens. I'm not sure what it's set to in the code, but you CAN edit it if you know how (which I do, but it's tricky).
 * KnockbackDistance is how far the Zombies get knocked back. It's set to "80 42" by default, but you can change it. (For example, "C8 42" would knock them back a bit farther)
 * Finally, KnockbackHeight, and I'm not sure what this does. It has the Fast recharge value in the code, but that's about all I know about it.

It's the same for the other peas, but due to how the game works, they don't have words to show you where you can edit them. The values are still there though. Under the Fire Primal Pea, here are the values in order:


 * "24 64" (Damage)
 * "00 3F" (You'll see this twice. The first one is StunDuration, the second one is KnockbackChance)
 * "9A 99 99 99 99 99 B9 3F" (This is the KnockbackDuration. Once again, tricky to edit.)
 * "80 42" (KnockbackDistance)

For the Plant Fooded Torchwood's Fire Pea, here are the values in order:


 * "24 96 01" (Damage. Notice how it has the same code as the 150 Sun Cost. That's because internally, it does 150 damage! To us, it does 7 Damage. To edit this, just edit like you would edit the sun cost of a plant.)
 * "00 3F" (You'll see this twice. The first one is StunDuration, the second one is KnockbackChance)
 * "9A 99 99 99 99 99 B9 3F" (This is the KnockbackDuration. Once again, tricky to edit.)
 * "80 42" (KnockbackDistance)

Now, for the Plant Food peas. Since I don't have 1Zulu's Json files, alot of this is me spitballing, but I might have it figured out.

The last two values are the same as the normal peas (KnockbackDuration and KnockbackDistance respectively).
 * The two "96 01" values are it's damage and splash damage respectively. Yes, this pea does splash damage. This is set to 150 by default, or 7NDS.
 * I believe the first "80 3F" is Stun Duration, but this is the part where I could be wrong.
 * The second I believe one is KnockbackChance, but then again, I could be wrong. Also, these peas are guaranteed to knock back anyways, so I'm not sure why this values is necessary.
 * The third one is the splash damage radius. By default, it's set to one tile ahead of it, the tiles it's on, and the tile behind it.
 * Those last three could be in the wrong order. The other order I propose is: Splash Radius first, StunDuration second, and KnockbackChance third.

For the Plant Food fire peas, it's the same, only the damage is different. For the normal PF Fire pea, it's 200 (or 10NDS) as the damage value, while for the Torchwood PF PF Pea (yes, this sounds redundant), It's 240, (or 12 NDS).

WIP. The rest of the plants are coming, this one just takes a while because it's a new Peashooter, and new Peashooters mean big changes. Also, to ThisUserLikesOreo, I'll add you after I finish this :) 