Attack_Up(mob/M)
if(M.attup >> 0)
if(M.mp >= 50)
var
attd = attup/10 * attack
M << "<font color = blue><b>You summon a burst of attack power!"
if(M.attackdoubled == 0)
M << "<font color = blue><b>Your attack increases!"
attd = round(attd)
M.attack += attd
M.attackdoubled = 1
M.mp -= 50
NPCDeathCheck(M)
else if(M.attackdoubled == 1)
M << "<font color = blue><b>The energy combinding in you suddenly bursts away!"
M.mp -= 50
NPCDeathCheck(M)
else
M << "<font color = blue><b>You don't have enouph MP!"
Battle(M)
else
M << "<font color = blue><b>You don't know this skill!"
Battle(M)
That does nothing to my attack. I make it add attd to ur attack which should do something, but it doesn't not even for a second. My attack doesn't bounce at all. When my attack = 1,000 and attup = 1, attd should = 100 and add 100 to 1,000, but nothing happens, it doesn't even effect the person. What's going on? Why won't it work?
Oh, and change <code>if(M.attup >> 0)</code> to <code>if(M.attup > 0)</code> . The >> operator is much different than the > operator. Although they have the same effect right here, you shouldn't be using the wrong operator.
Oh, and effect is a noun (the effect of something), affect is a verb (affected something).