Jump to content

Idea: New getunittype and var store killed mob id (not gid)


Rynbef

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  895
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

Idea:

add to *getunittype() one (or two) new types BL_CMD/BL_SCRIPTCMD to check if monster was killed by script-/ or atcommand.

A new pre defined variable of type int *killedmid it contains the ID of the mob who was killed(not the unique game mob ID *GID). Will be empty(0) if no mob was killed of course.

//I don't know if there is any other way to check if mob was killed by script and get the MOB ID or cast GID to MOB ID. If monster spawn by script command with own unique event label its not possible to check if the mob was killed by command (script/at) in my opinion. Only we know the ID.

 

Maybe I'm lost but tried/searched everything.

What do you think about?

 

Rynbef~

Edited by Rynbef
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.

×
×
  • Create New...