Commands for LUA-scripts:
1) set attack type (melee, range)
2) set ammo type to arrows, bullets, rocks or any item
3) hide name after m:set_name
4) hide healthbar
Reasons and thoughts:
1) For example, being able to switch the attack type of a mob at random in a heartbeatfunction would offer more variety for possible mini bosses and it would be a good alternative to changing the m.code.
2) Changing the sprite of the projectile could be fun like having a mad dwarf who throws mining utilities at you.
3) I have to following piece of code for a spawner:
This would change a mob I placed over a lava tile into a maptile which has no sprite at all, so only the lava would be visible as the attacking source. Without the m:set_name the attacker would be labeled maptile (attacked by maptile) which looks weird and with m:set_name there would also be the name above the mob like it were a boss which I would prefer not to be seen.m.code = 0x43d -- changes sprite into a maptile
m:set_name("Lava")
m.immobile=true
m:learn_spell("vf")
4) As an addition to 3) to hide name and healthbar without making the mob itself invisible like m:set_health(HN_INVISIBLE,-1) does.