Jump to content
  • 0

How do you know which monster killed another monster?


AIex

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  10/12/14
  • Last Seen:  

Hello everyone!
I have a NPC that causes two different aggressive mobs (Poison Spore and Argiope). These monsters kill another mobs.

I also have another NPC that cause Porings.

The task is to find out which monster (Poison Spore or Argiope) kills Poring.

 

Or how to find Poring was killed by a player or a monster summoned by the first NPC?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  10/12/14
  • Last Seen:  

Please, have someone ideas?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

 

It is necessary to harness the monster to something.
Example: The monster must be summoned by an "event":
 

monster "YOU_MAP",0,0,"--ja--",MOB_ID,1,strnpcinfo(0)+"::OnMyMobDead1";


This way, when the monster is defeated, it will call the event: OnMyMobDead1
 

OnMyMobDead1:
mapannounce "YOU_MAP","[ Exemple ] : "+strcharinfo(0)+" defeated the monster!",8;
end;


I don't know an easy or simple way to tie the event to a monster or npc.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   35
  • Joined:  07/04/19
  • Last Seen:  

On 2/15/2021 at 6:34 PM, AIex said:

Hello everyone!
I have a NPC that causes two different aggressive mobs (Poison Spore and Argiope). These monsters kill another mobs.

I also have another NPC that cause Porings.

The task is to find out which monster (Poison Spore or Argiope) kills Poring.

 

Or how to find Poring was killed by a player or a monster summoned by the first NPC?

You can use event labels like @Gladius said to figure it if a monster was killed by a player or another monster, but there is no way to access the information of the killer monster without a source mod

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
Answer this question...

×   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...