Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm super new to Decker and trying to use the validator contraption as a way to implement a specific password in order to be able to advance to the next card. I'm not sure if that is the intended function of this contraption or a possibility and would greatly appreciate any guidance.

It would probably be just as easy to use a plain field as a Validator for what you describe. Say you have a field named "myfield". You could then have a button with a script something like:

on click do
 if myfield.text ~ "the password"
  go[someOtherCard]
 end
end

Or perhaps you could give the field a script and enable a button when it contains the correct text?

on change val do
 myButton.locked: !val~"the password"
end

This thread has some additional discussion about implementing a password/search system that might be useful.

(+1)

Thanks for the quick feedback! I shall try to implement both of those solutions, if only to get a better grasp on the system and figure out which one works best. I will also check out the linked thread. Thanks again!