Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Starzy

Pages: 1 ... 138 139 140 141 142 [143] 144 145 146 147 148 ... 156
2131
Code: [Select]
      if(%msg $= "Hello")  //Check if the message reads Hello - You forgot a " at the end
Replace Yenola's if(%msg $= "Hello) to above.

2132
i'm gonna die laughing if he says he made it himself from scratch
PLEASE SETRO SAY YOU MADE IT!

2133
Games / Re: League of Legends - Megathread
« on: July 22, 2013, 10:38:02 PM »
ooo fancy

i've always just used this

http://www.ultimate-bravery.com/?lang=en
I might include that, just get a bunch of them (Maybe like 100) and enter them in to make a different tab for it.

2134
Games / Re: League of Legends - Megathread
« on: July 22, 2013, 07:12:27 PM »
So I was bored and didn't want to play anything so I wrote a small little script - around 80-90 lines to randomise a champion, role, lane. I'm putting in some images and a random item script to randomise what you buy first.
heres a picture of it, it's wip.


2135
Off Topic / Re: Python Help - If Statements
« on: July 22, 2013, 06:51:36 AM »
Weird as in totally normal? Global is such a stuff suggestion, you either define the names in the function or you pass them into the function.
I thought global was the only way to do it, I'm new to this coding with python only like 4 months.



When I do the names = [] then go into the random(): function then set the names = [""] stuff, I then use Label2 = Label(start, text = len(names)) It always returns 0 anyway to fix this, I'm an idiot because I haven't used Len much

- I'm an idiot I didn't global names. Can't check if that's the problem cause I'm in bed and on iPod.
Didn't work still returns 0.

2136
Off Topic / Re: Python Help - If Statements
« on: July 22, 2013, 04:58:31 AM »
yeah i'm using global right now :I

Thanks a lot for your help, I appreciate it a lot.

gonna leave this topic open for more discussion about python.

2137
Off Topic / Re: Python Help - GUI Label help
« on: July 22, 2013, 04:51:02 AM »
So i'm trying to put it in a gui using a label and the pack method and having trouble with len names

Code: [Select]
label2 = Label(start, text = len(names))
label2.pack(side = "right")
and because of the names being defined in
Code: [Select]
def random():
I can't put the label inside of it because it'll duplicate like 500 times and I can't put it out of it because it isn't define, is there anyway to define it outside and inside of
Code: [Select]
def random():

2138
Off Topic / Re: Python Help - If Statements
« on: July 22, 2013, 04:25:51 AM »
Thanks a lot, also can I print/call how many names there are?
Like print (names) ??

2139
Off Topic / Re: Python Help - If Statements
« on: July 22, 2013, 04:16:57 AM »
So with an array can you explain the last line?
like does len(names) random how many names there are -

like there are 50 names and len(names) is just meaning len(50)?
it's giving me an error, i'm using latest python by the way and coding it in IDLE

2140
Off Topic / Python Help - If Statements
« on: July 22, 2013, 04:03:27 AM »
I'm trying to do a program with a gui where it picks out a random name i've entered in (Not through asking and storing a string) but through entering it with an if statement like so -
Code: [Select]
import random

cnum = random.randint(1, 115)
if cnum == 1:
cnum = "Aatrox"
elif cnum == 2:
cnum = "Ahri"

and then it says through a gui what it cnum returns as (Like Ahri or Aatrox) i'm doing this 115 times but I want to know if there are more efficent methods rather than 115 ifs/elifs/elses.
Python pro's halp

Note: I have the gui and stuff all done I just want to know if theres a more efficent way of storing names then picking one out of random.

2141
Are you shure?
I don't know how Ravencroft did it.
Maybe a relay checking if one player or less is on the arena.
If that comes positive, mini reset.
It's possible with VCE and i've done it before. It's super simple.

2142
Games / Re: League of Legends - Megathread
« on: July 22, 2013, 02:53:39 AM »
Shyvanna is pretty fun i've been wanting to try her jungle it's just that I don't own her and I just bought a bunch of other people so I have like 300 points.

2143
Off Topic / Re: Vote For Charles
« on: July 22, 2013, 02:45:47 AM »
What do you mean his dreams were crushed? I thought he was in first in the other comp

2144
Off Topic / Re: How much is Blockland worth?
« on: July 22, 2013, 02:45:24 AM »
606,665.7 + 0.1 is how he got it.

2145
Off Topic / Re: Things that made you tear up alot or a little
« on: July 22, 2013, 02:20:38 AM »
Bridge to Terabithia, first 3/4 was just terrible acting then suddenly BOOM, feelings are torn apart in front of me.

Sameeee, Leslie dying. :'(

Pages: 1 ... 138 139 140 141 142 [143] 144 145 146 147 148 ... 156