Aeva / nw-converter

Parser and converter for the .nw level file format
GNU General Public License v3.0
8 stars 4 forks source link

virtual npcs via showimg #1

Open Aeva opened 8 years ago

Aeva commented 8 years ago

Some npcs can draw additional sprites, via 'showimg' and related commands. For example:

  showimg index, image.png, x, y;
  changeimgcolors index, red, green, blue, alpha;
  changeimgzoom index, scalefactor;

These are commonly used to add overhangs and lighting effects, so it would be good for the parser to be able to utilize these. The easiest way is to regex for the "showimg" command and for related commands that share the same index that have static arguments, and then to add a new source-less NPC that is pre-configured.