/area/black_out_outside
layer= AREA_LAYER
Entered(M)
M<<"[M] has entered the void"
Exited(M)
M<<"[M] has left the void"
How would i make it so that when M enters the void area the outside world becomes darker,Without using opacity?
Code:
/area/black_out_outside How would i make it so that when M enters the void area the outside world becomes darker,Without using opacity? |
A few notes, 'black.dmi' should be an all-black icon at world.icon_size dimensions.
In isometric or side_map, the layer of the override images should be FOREGROUND layer. For topdown, it doesn't really matter, though.
Your HUD objects should always be on a separate plane from your map objects. These override images use a different plane to ensure conflicts do not occur. You can get away without the plane setting, but be aware that this approach requires some customization.
If you ever set a mob's location manually, you need to call updateOutside(). Otherwise, the position will be out of sync and the counter will be inaccurate. Ideally, you should never set position manually because it makes tracker systems unreliable.