Discuss Scratch

TimothyLawyer
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

*confused*
Use the existing
(current [ v])
to calculate the season.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

TimothyLawyer wrote:

TheHockeyist wrote:

*confused*
Use the existing
(current [ v])
to calculate the season.
That's what I thought you said…
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

TheHockeyIst wrote:

How would it detect what hemisphere you're in? Your IP?
Well, it says what country you live in, right? Can't it find out from that?
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

TimothyLawyer wrote:

Use the existing
(current [ v])
to calculate the season.
I know you can, this is just to shorten that script. Oh, and for numbers:

1:Spring
2:Summer
3:Autumn (or fall, whatever)
4:Winter
TimothyLawyer
Scratcher
1000+ posts

(current [minute v]) Should have Season

A good project could be made for this, even better when custom operators become available.
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

I made a script to do it! Finally!
theonlygusti
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyIst wrote:

How would it detect what hemisphere you're in? Your IP?

Use HTML5's geoLocation API
http://jsfiddle.net/hcu2fbdq/2/
Or the user's entered location.

If they both fail, assume northern hemisphere because it's over twice as likely.
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

TimothyLawyer wrote:

(current [ v])
to calculate the season.

Yea, but would you rather have one block or like, 30, to calculate seasons? I do have a script to do it.
RPFluffy
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.

I think he means the astronomical seasons. But anyways yeah why not this instead?:

(current [season in south v])

And also what about the “equator” seasons, Dry and Wet. These ARE real seasons.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

RPFluffy wrote:

TheHockeyist wrote:

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.

I think he means the astronomical seasons. But anyways yeah why not this instead?:

(current [season in south v])

And also what about the “equator” seasons, Dry and Wet. These ARE real seasons.

Yep. Also see post #2 on here for more.
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

I agree!
ScratchJahd2011
Scratcher
500+ posts

(current [minute v]) Should have Season

We people in the Philippines (equator country, mind you) have no winter and spring.

We joke we only have Dry, Rain, and More Rain.

So there.
djdolphin
Scratcher
1000+ posts

(current [minute v]) Should have Season

https://www.scribd.com/doc/24990884/Chart-of-Seasons-and-Months-Around-the-World

I don't think it's worth the effort. Also, someone could use the current month and season to figure what region of the world a user lives in. That's bad.

Last edited by djdolphin (Oct. 20, 2014 23:22:44)

TimothyLawyer
Scratcher
1000+ posts

(current [minute v]) Should have Season

little_kitten wrote:

Yea, but would you rather have one block or like, 30, to calculate seasons? I do have a script to do it.
I would rather have a script to do it.

Share?
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

Okay! Here it is: Go inside and the sprite titled “Season” has the script.

Last edited by little_kitten (Oct. 21, 2014 23:00:47)

robosnakejr
Scratcher
1000+ posts

(current [minute v]) Should have Season

Deleted
didn't see there was a second page

Last edited by robosnakejr (Oct. 22, 2014 00:14:20)

theonlygusti
Scratcher
1000+ posts

(current [minute v]) Should have Season

djdolphin wrote:

https://www.scribd.com/doc/24990884/Chart-of-Seasons-and-Months-Around-the-World

I don't think it's worth the effort. Also, someone could use the current month and season to figure what region of the world a user lives in. That's bad.
You can figure out where a user lives via their profile page.

If they haven't entered their location there, I doubt they're going to let JavaScript use it either.
Prinseskat
Scratcher
1000+ posts

(current [minute v]) Should have Season

if <<(current [month v]) = [1]> or <(current [month v]) = [2]>> then
say [It's summer! (I live in the southern hemisphere ok)]
end
if <<<(current [month v]) = [3]> or <(current [month v]) = [4]>> or <(current [month v]) = [5]>> then
say [It's autumn!]
end
You get the idea. Too lazy to put in the rest. (Is that how you're supposed to use the “current” block, with numbers? Not sure.)
Crow_Boy08
Scratcher
1000+ posts

(current [minute v]) Should have Season

buttp

Bring
Up
This
Topic/Post

Last edited by Crow_Boy08 (Feb. 5, 2023 03:13:01)

qwerty_wasd_gone
Scratcher
1000+ posts

(current [minute v]) Should have Season

no support use
(current [month v])
and calculate the season using this

Powered by DjangoBB