User blog:MugenLover10/Coding a move

OK, i am now stuck on one thing for my character, coding a "Super Stomp". I want this attack to work only in the air as long as he has 3000 in the powerbar. Any idea on how i would code this? The state number i am using for this move is 1028. He's only given 15 ticks in frame 1 and frame 2, he is given 120 ticks, which gives him 135 ticks.