Board Thread:Plants vs. Zombies 2: It's About Time/@comment-25005818-20141106133333/@comment-24190447-20141110064926
Jump to navigation
Jump to search
Tuvu wrote:
Ganrash wrote:
Buzzy Buzz wrote:
Ganrash wrote:
How could I help you?
I've tried editing sun costs, but I can't figure out how to do it with plants which have 2 bytes.
How could I help you?
For example, More than 255 sun plants, Banana Launcher etc.
I figured it out:
Hex | Sun cost |
80 00 | 0 |
99 00 | 25 |
B2 00 | 50 |
CB 00 | 75 |
E4 00 | 100 |
FD 00 | 125 |
96 01 | 150 |
AF 01 | 175 |
C8 01 | 200 |
E1 01 | 225 |
FA 01 | 250 |
93 02 | 275 |
AC 02 | 300 |
C5 02 | 325 |
DE 02 | 350 |
F7 02 | 375 |
90 03 | 400 |
A9 03 | 425 |
C2 03 | 450 |
DB 03 | 475 |
F4 03 | 500 |
8D 04 | 525 |
A6 04 | 550 |
BF 04 | 575 |
D8 04 | 600 |
Search for {PlantName}Default
Make sur there isn't POPANIM_PLANT_{PLANTNAME} right after it. If there is, press F3/next.
Find there nearest $ sign after {PlantName}Default.
Change the next two bytes to the hex values above.
For example, to make banana launcher cost 150 sun, change "42 61 6E 61 6E 61 44 65 66 61 75 6C 74 FE 91 08 85 91 9A 02 24 F4 03" to " 42 61 6E 61 6E 61 44 65 66 61 75 6C 74 FE 91 08 85 91 9A 02 24 96 01"
Can I change the price to zero just by nullify those numbers?
No, it makes the game crash. If you want to change the price to zero (if the plant costs more than 255) you need to change the two bytes after $ to 80 00