Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sub OnNpcDeath…......


Aeon Trag
 Share

Recommended Posts

so,
```
Sub OnNPCDeath(index)
If NPCNum= ### Then
Call PlayerMsg(index, "you just killed a-NPCNAMEHERE-on map"& GetPlayerMap(index)&"!", BRIGHTBLUE)
End If

```Starting from the If part, paste that under your sub OnNPCDeath(index) and change the NPC number to whatever # it is on the NPC editor and change -NPCNAMEHERE- to whatever the name of the NPC is like slime or whatever (you don't NEED the - - marks, they were just there to show u what section I was talking about and, you actually could get some sort of error if u keep them in because they are used as a minus sign in sadscript, I really hope this is what u wanted and if it isn't, then I can edit it!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...