Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Problem or bug trying out "block_when_not_worn"

A topic by JimB16 created Jan 28, 2020 Views: 120 Replies: 4
Viewing posts 1 to 4

Hello,

I found the idea of this Jam interesting and so I tested Adventuron a bit to see how it would work and I probably found a bug when I implemented a block for not wearing something. The "block_when_not_worn" doesn't work, at least as I expect it to work. The other blocks like "block_when_not_carried" worked fine. Here test code for an example where the player should be able to enter the next location if they wear the suit, which doesn't work. The Carrying-Block works without problems.

##################################################
## bug demonstration of "block_when_not_worn"
## test with
## s, take suit, s, wear suit, s
##################################################
start_at            = beach
redescribe          = auto_beta
game_information {
   game_name        = WornBlock
   game_version     = 0.1.0
}
game_settings {
   rewind_enabled                = true
   rollback_enabled              = true
   imply_header_from_location_id = true
}
locations {
   beach        : location ;
   under_water    : location ;
}
connections {
   from, direction, to = [
      beach,  south, under_water,
   ]
}
objects {
   
   diving_suit : object "a diving suit" wearable = "true" at = "beach";
   
}
barriers {
   
   space_block : block {
      block_when_not_worn    = diving_suit
      #block_when_not_carried  = diving_suit
      location               = under_water
      message                = No diving suit.
      show_blocked_exit   = true
   }
}
Host

Hi JimB16,

Thanks for reporting the bug. Nice catch. Press F5 to update Adventuron (>= beta 18 has bugfix).

If you have time, please introduce yourself in this thread. Also,  don't forget to use "start_theme = two".

Chris

Submitted

Probably, this can be a "bug thread". Found that "match" function doesn't trim users input. And "select yellow" works fine, but " select yellow" (with leading space) and "select yellow " (with trailing space) fails. It will be very problematic to write all possible options of spaces for each term .

Host

thanks for the report. I'll look into this....

Submitted

Sorry, it was not a bug, it was my fault. Everything fine with this. Thanks for amazing engine, I like it.