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

Pages: 1-

python text adventure

Name: Anonymous 2011-03-06 22:37

ok, so im working on this text adventure, and i want it to be so that my script for being attacked will be able to used at any point. like function except i know thats wrong or i am doing somethign wrong. how do i define a script for future use in python? everytime i try it says some bullcrap about the variables not existing?

Name: Anonymous 2011-03-06 23:16

/ooc what the hell are you even trying to accomplish?

Name: Anonymous 2011-03-07 0:19

>>1
WTF I just read?

Name: Anonymous 2011-03-07 0:45

>>1
mailto:noko
I knew it.

Name: Anonymous 2011-03-07 5:40

It's called a module you big dummy.

import attack-script

then

attack-script.attack() <- for functions

Name: Anonymous 2011-03-07 6:13

>>5
attack-script
-

THAT'S NOT LISP FAGGOT YOU CAN'T HAVE decent-naming-conventionS

Name: Anonymous 2011-03-07 8:27

>>6
proof?

Name: Anonymous 2011-03-07 8:31

>>6
>lisp
>decent
HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAruhi~~ ^_^

Name: Anonymous 2011-03-07 8:42

>>7
shitCase, lower_with_underscore, CameCase, Camel_Case_With_Underscore, Haxmy_aNusC_Ase.
They all suck in some way. You can type lowercase-with-hyphen without hitting the shift key. But the best is still Algol 68[1], which allows spaces in the identifiers[2] without |this, like you would in lisp.|

______
[1] http://en.wikipedia.org/wiki/ALGOL_68
[2] http://en.wikipedia.org/wiki/ALGOL_68#Program_representation

Name: Anonymous 2011-03-07 8:47

>>7
$ python
Python 2.6.6 (r266:84292, Feb 25 2011, 15:51:11)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import you-fail
  File "<stdin>", line 1
    import you-fail
              ^
SyntaxError: invalid syntax

Name: Anonymous 2011-03-07 9:34

0]=> python
Python 3.2 (r32:88445, Feb 21 2011, 01:54:01)
[GCC 4.5.2 20110127 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> hax-my-anus = 2
  File "<stdin>", line 1
SyntaxError: can't assign to operator


0]=> racket
Welcome to Racket v5.1.0.3.
(define hax-my-anus 2)
hax-my-anus
2
(define |(hax, my) anus.| 3)
|(hax, my) anus.|
3

Name: Anonymous 2011-03-07 10:22

>>11
Python 3.2
( ≖‿≖)

Name: Anonymous 2011-03-07 10:44

>>12
I never use it anyway.

Name: Anonymous 2011-03-07 13:30


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