List

Maniacus

  • Posts: 69
Can I use a list with 4 items  that are custom events? If so how would I use it to trigger them?

mdotedot

  • Posts: 1610
Hello Maniacus,

Example uses a random - function but you can use list entries for that :


Best regards from

M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Maniacus

  • Posts: 69
Thanks!!!  I ended up using this code that i found. I don't know much about lists, but I want to be able to continuously trigger 4 custom events using the random number block with the list. I know this code removes the items from the list but How can I reset the list or make it so it will continue to use the listed trigger events?

mdotedot

  • Posts: 1610
So you want to reset = renew the list once it is empty?
Then you could use an otherwise block after the if not empty list. So when it is empty it will visit the otherwise block where you can add the texts to the list again.
Use the add [ x ] to list block for that.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.