FANDOM


Supported In:
C D/S/W W-CD
? ? ?

The scripting command Spawn has the opcode (0x10).

Arguments

  • Monster ID (byte)
  • X-Coordinate (byte)
  • Y-Coordinate (byte)
  • Unknown (byte) - unused


Description

Spawns (creates) the specified monster at the supplied location. This is used, for example, if you insult one of the NPCs and they spawn monsters to kill you. This is also used to set map flags used by IfMapFlag by spawning a "monster" outside the map, with either an X or Y position greater than 0x20.

Notes

This effectively works more as a "move monster" than a spawn monster. The monster of the given ID must already have been defined for the map. It's stats are reset and it is placed at the X/Y coordinates, however. A prime example is Gettlewaithe the Gremlin King in Castleview on the Darkside who spawns an army of gremlins and goblins around him when you talk to him. Finally, the fourth byte appears totally unused. It is always 0x00, and changing it has no effect. It can be safely ignored.


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.