Lantern/light sources that follow character etc.

I was wondering if anyone had previously done this or had any knowledge on how to create light sources that only illuminated certain areas of the map and/or followed the character if they picked the item up?

Say I want to create a lantern, lighter, matches, torch etc. how would I go about making them items that when picked up could be equipped to create a light source to illuminate the otherwise pitch black area.

Thanks.
Galv's Visual Range does this.

Original thread: https://forums.rpgmakerweb.com/threads/lantern-light-sources-that-follow-character-etc.35047/