How to Get from a List

Amdirant

  • *
  • Posts: 33
I'm new to lists.

How do I retrieve information from it?

I'm trying to make one of nine things happen when a button is pressed and I'm a bit stuck.

Apologies if this had already been asked, I've looked and couldn't find the answer.

Luyren

  • *
  • Posts: 2782
Under Attributes > Lists:
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Amdirant

  • *
  • Posts: 33
Thank you. I have seen this, but where does it slot in?

CmdrWhitey13

  • Posts: 505
May try looking here:

http://www.stencyl.com/help/view/lists/

Should give a better understanding.

Amdirant

  • *
  • Posts: 33
Ive read that, but thank you.

My issue is the interface. Where do I find the piece that fits into the 'get from list' piece?

"Get item # from list" needs to go somewhere. Where does it go?

Luyren

  • *
  • Posts: 2782
A few examples. Since lists can be anything, they can go anywhere. To do anything with numbers, you have to use the "as number" block.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Amdirant

  • *
  • Posts: 33
Ah brilliant. I'll have a look at that.

Amdirant

  • *
  • Posts: 33
Can I get it to go through my list and select an entry every time the up arrow is pressed?

Luyren

  • *
  • Posts: 2782
Yes. You can loop through the list, and there is a block to exit the loop, so you can use that when your reach your item and do your stuff.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Amdirant

  • *
  • Posts: 33
Thank you, I'll try that!