Discuss Scratch

link94
Scratcher
26 posts

Logic inputs not working.

You know how in scratch the blocks are simple but putting different ones together will allow for some useful scripts?

Well a game I was working on relied heavily on this in order for move effects to work, and I was on to the one where the player can boost the base attack of their character through a permanent status up. The ability would be able to stack, meaning using it a lot would give a better use.

However, when I tried the script, it was unable to work, and no variation I tried work. What puzzled me more, was that all of the other parts of the script were working so it should of been able to work.

Was it a glitch or was I being a big dumb-dumb at scratch code logic again.
RokCoder
Scratcher
1000+ posts

Logic inputs not working.

It's very unlikely to be a bug in Scratch but it's impossible to be sure without seeing the actual script. Can you share the project and specify which script in which sprite is causing the confusion?


Scratch dabbling for fun…

link94
Scratcher
26 posts

Logic inputs not working.

ok I guess
link94
Scratcher
26 posts

Logic inputs not working.

RokCoder
Scratcher
1000+ posts

Logic inputs not working.

link94 wrote:

Here it is:
https://scratch.mit.edu/projects/297150244/
Which sprite and which script in particular? It's likely someone could work this out by digging through your project but it's much better if you can provide as many details as possible in the first place.


Scratch dabbling for fun…

link94
Scratcher
26 posts

Logic inputs not working.

oh sorry I forgot to put the actual sprite.

Somewhere, at the bottom of the code board for chip effects, there is a code with a note attached to it.
RokCoder
Scratcher
1000+ posts

Logic inputs not working.

I have literally no idea what you're trying to achieve with that particular script block!

Looking at one small part of it:

(letter (9) of (item (< (megaman status ups) contains [buster+] ?> of [megaman status ups v] :: list))

Starting at the centre of the script, you're looking whether the list contains an entry of buster+. This particular section is either true (1) or false (0). So now you're looking at either item#0 or item#1 of the megaman status ups list. And to finish the script off, you're examining the ninth letter of either item zero or one of the megman status ups list.

Basically, this makes no sense. For a start, there is no zero entry to a list. There's a lot more to your script block but it's not going to achieve whatever it is that you're wanting.

If you can explain clearly what you're trying to achieve then we should be able to produce the correct logic for it.



Scratch dabbling for fun…

link94
Scratcher
26 posts

Logic inputs not working.

basically I was trying to make it so that every time you used the thing the code was in, it would add to last one if there was one, meaning it could stack.

I was trying to do it that way so that if something was effected by it, all the coding could be linked to that one item, and yes, I can probably guess I'm getting a confused look from you just now.
RokCoder
Scratcher
1000+ posts

Logic inputs not working.

link94 wrote:

…and yes, I can probably guess I'm getting a confused look from you just now.
Quite so

I vaguely wonder if you were wanting to use item# of buster+ in megaman status ups rather than megaman status ups contains buster+ but, either way, I'm pretty sure there's a less convoluted solution. I just haven't wrapped my head around what you're doing yet


Scratch dabbling for fun…

Powered by DjangoBB