matthileo

Untitled

Jun 22nd, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ^^ user.formatAttack=function(e,t,c,h,o,s,r,a,n,i,g){var f="";a&&0==rr&&(echo("\n*"+user.character.name+" "+o+" "+n+" times"),r&&echo(" at "+r),echo(".*\n")),c?hits++:echo("~~"),a?(f+="Attack "+(rr+1)+": "+e.simple+" to hit, "+t.simple+" damage.",""!=g&&(f+=" "+g),h&&(f+=" :crossed_swords:"),echo(f)):(o&&(echo("\n"),stringPhrase="*"+user.character.name+" "+o,r&&(stringPhrase+=" at "+r),h&&(stringPhrase+=" and scores a CRITICAL HIT"),stringPhrase+="!*",echo(stringPhrase)),e&&(echo("\n"),echo("**To Hit:** "+e.string)),t.tokens.length>0&&(echo("\n"),echo("**Damage: **"+t.string)),""!=s&&(echo("\n"),r?echo(s.split("Target").join(r)):echo(s))),c||echo("~~"),n>1&&echo("\n"),rr>=n-1&&(a||echo("\n"),n>1&&echo("**Total Damage:** "+i+"\n"),n>1&&a&&""!=s&&hits>0&&(r?echo(s.split("Target").join(r).split("Effect:").join("Effect (x"+hits+"):")):echo(s.split("Effect:").join("Effect (x"+hits+"):")),n>1&&echo("\n")))};
Advertisement
Add Comment
Please, Sign In to add comment