Jump to content

Script spawning


Groupofglaahks
 Share

Recommended Posts

Quote:
void place_monster(short loc_x,short loc_y,short monst_type,short not_worth_xp)

Makes a monster of type monst_type appear at {loc_x,loc_y}. It is hostile to the party. The game has 34 slots reserved for wandering monsters and creatures made using the place_monster function.

If not_worth_xp is 0, than the creature is a normal creature. If not_worth_xp is 1, the creature drops no items and awards no experience when killed. If not_worth_xp is 2, the creature is considered to be summoned. It drops no items, isn't worth xp, and disappears a few turns later.

The summoned creature uses its default script.
For most situations, that's probably the call you want.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...