global variable check

doan sephim hi all!
x = 10
when x = 15, 30, 45, 75 ego gains new abilities. now i can do this, but everytime x increases i have to write in code for how to handle whatever number x i write the same code for everytime i increase x...i suspect there is a way to write the code once, and jump to it without having to write it out several times. if so, where do i put it?
doan sephim oh!! Im stupid!
as soon as i read my post to make sure it made sense, it hit me like lightning!
i set a procedure (xcheck) and put all the code there, and then i jsut type in (xcheck) anywhere i want it done...i guess sometimes it just helps to see the problem in writing!