Adding New Moves and Creating New Move Effects
View Single Post
March 9th, 2013, 05:18 AM
Formerly known as 11bayerf1
Join Date: Dec 2008
Location: Hong Kong
Originally Posted by
This won't work as intended. You see, command 2A checks literal values, not bitwise checks (which is how the weather bits work). You're asking it if it's 0x4 than 0x60 (I forget what 0x4 actually is).
What you should be doing is ANDing the address with those bits. However, to my knowledge, there are no such commands in the vanilla game.
As such, your script will only work under very specific circumstances, (when the weather bits are set to 0x60) and not under all Sunny weather types. (It's possible to only have 0x20 set, or only 0x40 set).
Don't worry, I tested it before posting and have had no problems. I got the code from Solarbeam and just changed the information contained at the pointers. I've used it under Sunny Day, Drought Sunny Day, Plain Weather, Rain, Sandstorm and Hail, on every turn, and so far it works 100%
MrDollSteak's Decap. and Attack Rombase (Version 1.4a)
Gen VI: DS-Style 64x64 Pokemon Sprite Resource
Tutorial on Creating Custom Particles
Last edited by MrDollSteak; March 9th, 2013 at
View Public Profile
Send a private message to MrDollSteak
Find all posts by MrDollSteak
Find threads started by MrDollSteak
Ignore Posts by MrDollSteak