Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This helps so much! thank you! it works, but not...quite!

I tried the solution given, and (splitting the options) it did work! but for some reason *reading* the chosen random has problems?

Here's what I got:

  • A button that goes
on click do
    generate[]
    enum1.value:random["\n" split enum1.options]
end
  • enum1, with a bunch of options, and 
  • A field, called teste1
  • Another field, called StoryFin
  • And the Card script that goes
on generate do
    teste1.text:enum1.value
    StoryFin .text:  teste1.text, "-continued with a lot of other text and stuff"
end

But what's happening on the button click:

Enum1 picks a random option just fine, but DIFFERENT from teste1 and StoryFin. teste1 and stdryfin has the Same text, but always different from enum1

Modifying the prototype also don't quite work. I don't know how to fix this so I'm reaching out again >< hope this isn't a stupid question! The og answer is already such a big help

(1 edit)

in your "on click..." script, you're calling generate[] before you choose a new random value for enum1.

(+1)

ahh thank you!