im trying to make one of those postnumber board games, but I dont wanna keep track of everyones postnumber all the time so I'm trying to make a script that does it for me but I have to test if it works so yeah thats kind of the purpose of this post
the script reads every post in the thread, and checks if the post contains the word "red" or "Red", or the word "blue" or "Blue"
it should also check if the post has dubs or trips, and add a multiplier to the score
so... just testing this, bear with me
will share code later
Jordan King
red
Angel Reed
red blue
Nolan Richardson
hm it counts this as a point for both red AND blue
Cameron Gray
you gotta fix that big guy-blue
Juan Sanders
working on it
Matthew Diaz
709913365
Landon Young
bump
Julian Harris
Red Red Red Blue Red Blue redblue red
Carter Cruz
Hopefully this is fun, anyone remember that old dragon slayer game o b where you'd roll for a class and the website would automatically pick it up and stuff, that shit was cash... Red
Logan Perry
Fixed, it now only accepts the first word. So if the post is "red blue red", it will count only the first "red".
The modifier for dubs/trips also works. Getting somewhere.
Jace Smith
Red is the superior colour
Christopher Lee
Godspeed user Sup Forums needs something new to do
Jose Bell
What it says if you write redblue ?
Levi Jones
It'll read 'red' first, and accept that
thanks, actually got a couple ideas lying around
Liam Wright
i got better there are a new 4craft server : 4Craft.serv.nu its in 1.10.2
Justin King
>red += 2 (dubs modifier)
>red += 1
>red += 1
>red += 2 (dubs modifier)
>blue += 1
>red += 1
>red += 1
>red += 1
>red += 1
>red += 1
>red += 1
So red has 12, blue has 1
Yup, its working
Lincoln Johnson
purple
Chase Harris
underrated post
Asher Collins
How is it underrated if we have had 51 seconds to reply. You haven't a clue as to the rating that post would receive after blue only 51 seconds.
Gavin Bell
Speaking of which do the dragonchan threads still work? I haven't seen them In a long time
Joshua Harris
I hate reddit
Grayson James
ok buddy
Austin Fisher
Just wondering if it counts for red if it is in a word I also dislike the website.
Jack Baker
Ah, yes it does count it for red. Maybe should fix that.