Posted April 15, 2021 by enegames
#feature #example
Very tiny feature announcement - you can now add the ".hidden" tag to any entity to prevent it from showing in the preview theme. This can be useful if you want to hide things until a specific rule triggers (or make things go away).
For example, let's say you have a manifest like this:
ITEM1.item.hidden.level=2.current_location=LOCATION1 ITEM2.item.hidden.level=2.current_location=LOCATION1 ITEM3.item.hidden.level=3.current_location=LOCATION1 LOCATION1.location WIZARD.character.current_location=LOCATION1 PLAYER.current_location=LOCATION1
Now lets say you want all level 2 items to show up when you talk to the wizard. You can do that in a rule like this:
ON: WIZARD DO: (*.item.hidden.level=2).-hidden