Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

I'm heading to bed, but came across something I can't quite wrap my head around.  The first snippet works. The second one doesn't.     I'm sure I'll figure it out after some sleep.. Just thought I'd put it here in case it's something you'd be interested in.


  :match "read letter" {
     : if (is_present("visit_letter") ) {               :print "this works";
}  }

  :match "read letter" {
     : if (is_present("visit_letter") && noun1_is "visit_letter" == true) {
           :print "this doesn't";
}  }

(+1)

is_present references an object identifier.

noun1_is "xxxx" references a noun (therefore the noun it would be checking for is visit_letter (with the underscore).

subject1_is "visit_letter" is probably what you are looking for.

That said, you don't need noun1_is "letter" or subject1_is "visit_letter", because the match "read letter" already checks that the noun is letter.

Ahhh, of course...  That explains it.  It was late, and I couldn't tell if it was some peculiarity of the match clause, or my own stupidity :) 

Thanks! :)