Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(6 edits)

Surely this is a better way to do it, less complex....

Create a zone. With a list of your 'no drop' rooms.

zones {
    no_drop : zone {
        locations = [ main_chamber,under_chamber,strange_room ]
    }
}

Then under the On Command list....

: match "drop _;drop all"  {
      : if (no_drop) {
      : print "CAN'T DO THAT HERE!" ;
      : done ;
      }
   }

Would that not work? Seems simpler than the above stuff. I've not tested this btw. ;-)

This seems quite flexible too as you can add whatever locations you like to the list and you can add additional equations to the IF statement for things like if you're holding a particular item, then you are allowed to drop things. That kind of stuff. :-)

On the surface, that looks like it will work. Probably a good idea, actually.

Looks good, but the condition should be


: if (is_at "no_drop") {
}

Nice one... I knew I'd do something wrong. LOL and that's why I should test stuff first before typing it in. hee hee. 

Interesting. But the rule "don't touch if it works". But thanks anyway, knowledge for the future.

Totally understand Artem. If ain't broke an all that. :) Still it got us thinking, and gave multiple solutions to the same thing. :)