Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Mah JScript Won't Work

Name: Anonymous 2008-02-15 11:55

I'm learning javascript, and trying to program a simple HTML and text based game to make it less dry to learn.  This is my attempt at programming basic attack damage, but it don't work.

HALP 

<HTML>
<HEAD>
<script language="javascript">
strength=20;
weapondamage=50;
</script>
</HEAD>
<BODY>
<script language="text/javascript">
var phrandom=Math.floor(Math.random()*5);
return phrandom;
var Aray=new Array(3);
Aray[0]=.5;
Aray[1]=.6;
Aray[2]=.7;
phmodify=Aray[phrandom];
var phdamage=strength*(weapondamage)*phmodify;
document.write(phdamage)
</script>
</BODY>
</HTML>

Name: Anonymous 2008-02-15 11:57

Use FIOC.

Name: Anonymous 2008-02-15 12:05

>>2
okay, I googled and still don't know wtf a frame I/O controller does.

Name: Anonymous 2008-02-15 12:10

return phrandom;

Name: Anonymous 2008-02-15 12:11

Please kill yourself.

Name: Anonymous 2008-02-15 12:19

huh...fixed it, apparently "text/javasctipt" fucks up code.

Name: Anonymous 2008-02-15 12:23

>>3
Hahahaha, I command you, troll or not, this made me laugh for real. Try ``FIOC python''.

Name: Anonymous 2008-02-15 12:25

>>3
use less 'fail';

Name: Anonymous 2008-02-15 14:13

Put your fucking javascript in a fucking .js file, goddamnit.

Name: Anonymous 2008-02-15 14:49

>>1
JScript

Die, faggot.

Name: Anonymous 2008-02-15 14:51

print base64_decode("WW91IGp1c3QgbG9zdCB0aGUgR2FtZS4gRnVydGhlcm1vcmUsIEkgbWFkZSB5b3Ugd29yayB0byBk
byBzbyB4RA==");

Name: Anonymous 2008-02-15 15:25

>>7
#define    FIOC        ('F'<<8)

Name: Anonymous 2008-02-15 15:26

>>12
I don't understand, please rephrase in Scheme.

Name: Anonymous 2008-02-15 15:32

>>13
import Data.Bits (shift)
forcedIndentationOfCode = (fromEnum 'F') `shift` 8

Name: Anonymous 2008-02-15 15:51

>>14
That's Haskell.

Name: Anonymous 2008-02-15 16:42

Scheme doesn't have a bitshift operator unfortunantly

Name: Anonymous 2008-02-15 16:42

(<< 'F' 8)

Name: Anonymous 2008-02-15 17:35

U+4600 CJK UNIFIED IDEOGRAPH-4600 (same as 蛗) grasshoppers

Name: Anonymous 2008-02-15 18:16

var Aray=new Array

Name: Anonymous 2008-02-15 19:25

Language java = new EnterpriseBullshitLanguage();

Name: Anonymous 2008-02-16 0:40

>>20
Language java = new EnterpriseBullshitLanguageFactoryBridgeObserver().newObserver().getInstance().execute().newFactory().execute();

Name: Anonymous 2008-02-17 0:51

>>1
Please stop posting.

Name: Anonymous 2009-03-06 5:40

The furry community This   is not surprising   because the media   the aim of   this is learning   how things work   under the bonnet   Get a copy   of IDA Pro   and have a   modified Vim which   includes changes as.

Don't change these.
Name: Email:
Entire Thread Thread List