0 Members and 3 Guests are viewing this topic.
":ATTACK1:randInt(5,10):→Str7":ATTACK2:randInt(5,10):→Str6...
":ATTACK1:randInt(5,10):ATTACK2:randInt(5,10):...→Str7
"randInt(5,10randInt(3,15randInt(6,12→Str7 //Example string to get the attack value (I'm guessing that is the use of this?)Prompt A //The attack number.expr(sub(Str7,5A-4,5→B //Gets the randomly generated number.
"attack1->Str7":attack1:randint(3,6):attack2:(randint(0,9001)>9000)*9000:->Str2(code here to get the attack damage)
"ATTACK1→Str7":ATTACK1:randInt(5,10):ATTACK2:(randInt(0,9001)>9000)*9000:→Str2inString(Str2,Str7)+1+length(Str7expr(sub(Str2,Ans,inString(Str2,":",Ans)-Ans→B