Jump to content

Photo

Change Dropset?


  • Please log in to reply
3 replies to this topic

#1 idontknow8

idontknow8

    Senior

  • Members

Posted 28 December 2020 - 04:12 PM

Is it possible to script changing an enemies dropset?  I have a scripted item that kills enemies in one shot but I want to make it so that when you do so, the enemies don't drop items.  I know you could probably just move enemies off screen but I still want their defeated 'poof' to appear & sound effect to play upon killing them with said item.  I just don't want them to drop any items.



#2 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 28 December 2020 - 04:27 PM

It should be possible with "ItemSet"

npc SomeNPC;
SomeNPC = Screen->LoadNPC(1);
SomeNPC->ItemSet = IS_NONE;

Like this


  • Lüt likes this

#3 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 28 December 2020 - 04:48 PM

Also, if you want the enemies not to play the death SFX, you can kill them by doing

n->HP = HP_SILENT;

which will kill them (that is less than 0 HP), and not play the death sound (because hardcoded jank)


  • Twilight Knight, Mitchfork and Bagu like this

#4 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 29 December 2020 - 04:17 AM

Also, if you want the enemies not to play the death SFX, you can kill them by doing

n->HP = HP_SILENT;

which will kill them (that is less than 0 HP), and not play the death sound (because hardcoded jank)

While I don't think that's what idontknow8 wants, that is very useful to know!


  • Bagu likes this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users