scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

add mission attribute that checks if 2 creatures are in same location #478

Open scrom opened 8 years ago

scrom commented 8 years ago

at the moment, "destination" only applies to the main mission object. We'd want a combination of that and that the destination contains a specific named creature or object.

scrom commented 8 years ago

mission already has a method called "checkForRequiredContents" - used to check a mission object. It looks like missionObject can be a location but I don't think this is in use or tested yet.

However based on what's there at the moment, it looks like it is possible to trigger something when n named creatures are in the same location (creature count is different).