aaroncavanagh

So Ive began my new website, and im offering ‘Unique features’ for people who play on the website (Not anything against the rules as they can still be technically activated using see inside) - a code is given to the user on the website which they have to load in game to activate the features. however can any mods do this:

if <Playing on website> then
Activate features
end

CatsUnited

As far as I know, you can't detect if a project is embedded unless you run code running in the server and get the project to detect that by connecting to your server via cloud data and some hax.

aaroncavanagh

CatsUnited wrote:

As far as I know, you can't detect if a project is embedded unless you run code running in the server and get the project to detect that by connecting to your server via cloud data and some hax.
Is that a hard thing to do?

CatsUnited

aaroncavanagh wrote:

CatsUnited wrote:

As far as I know, you can't detect if a project is embedded unless you run code running in the server and get the project to detect that by connecting to your server via cloud data and some hax.
Is that a hard thing to do?
You would have to know a language other than Scratch.

Blank1234

have an extension be running on your website, that sets a extension boolean block to true, then you can detect whether its being played on your website.

gdpr533f604550b2f20900645890

You may be able to detect if a project is running on Scratch or not attempting to modify a cloud var, but I'm not sure. You can also try
if <(username) = [ ]> then

end
and instruct the player to log out of their Scratch account, if they have one. I believe the username detection works when accessing the project from another site, but again, I'm not sure.

Why do you always try to use you Scratch projects for some kind of monetary gain or exclusive features (I've seen you do things like this before)? Just learn another programming language or use Stencyl.

aaroncavanagh

Chibi-Matoran wrote:

You may be able to detect if a project is running on Scratch or not attempting to modify a cloud var, but I'm not sure. You can also try
if <(username) = [ ]> then

end
and instruct the player to log out of their Scratch account, if they have one. I believe the username detection works when accessing the project from another site, but again, I'm not sure.

Why do you always try to use you Scratch projects for some kind of monetary gain or exclusive features (I've seen you do things like this before)? Just learn another programming language or use Stencyl.
Exclusive features are things i just tend to do, I have a large scratch fan-base, so i tend to stick to scratch.

aaroncavanagh

Chibi-Matoran wrote:

You may be able to detect if a project is running on Scratch or not attempting to modify a cloud var, but I'm not sure. You can also try
if <(username) = [ ]> then

end
and instruct the player to log out of their Scratch account, if they have one. I believe the username detection works when accessing the project from another site, but again, I'm not sure.

Why do you always try to use you Scratch projects for some kind of monetary gain or exclusive features (I've seen you do things like this before)? Just learn another programming language or use Stencyl.
also, My website contains stuff like live chat, so i can talk to any of the people playing there and then.

NickyNouse

Wait can you just force ScratchExt to load on the embedded project? Or is it an ultra-secure iframe thing?

Wait can Phosphorus do extensions? Because that could mabez solve your problem if you don't need cloud stuff

NoMod-Programming

Yes. It would be possible by looking at the url of the website (I don't know the exact code; don't ask me). No. I do not think a mod supports this.

NickyNouse

Wait if it's running in a mod then it shouldn't ever run on the Scratch website, only on yours