Author Topic: Changing death/defeat sounds for NPCs  (Read 710 times)

Offline Dinonykos

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2294
    • Dinonykos Dungeon Craft
Changing death/defeat sounds for NPCs
« on: February 17, 2016, 01:36:03 PM »
I just realized that in older DC versions, it is not possible to assign different death/defeat sounds to different NPCs. I have seen though that in the newer DC versions, there is a new button "attributes" in the NPC creation window. Can attributes be used to change the default death/defeat sound for a certain character, and if yes, how?
Find four contributions to the Pre-Generated Character Mini-Module Design Contest on my homepage.
New: THE AMBASSADOR'S LETTER, my contribution to the 7-day-challenge.
DINONYKOS DUNGEON CRAFT DESIGN HOMEPAGE

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2201
Re: Changing death/defeat sounds for NPCs
« Reply #1 on: February 17, 2016, 10:03:33 PM »
I believe it to be impossible.

A relatively simple addition of a Hook named
(for example) "Character Death Sound" could be
implemented which would allow you to examine the
character and specify a sound file.  The easiest hook
to write would use the "NPC Attribute" (which you
discovered) to define the filename.   

How much is it worth to you? It would cost me perhaps
four hours.


Offline Dinonykos

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2294
    • Dinonykos Dungeon Craft
Re: Changing death/defeat sounds for NPCs
« Reply #2 on: February 18, 2016, 07:06:11 AM »
On a scale from 1 to 10 (10 = highest importance) this would really be very low, probably 1. I guess your precious 4 hours can be invested in a better way. :)

I have finally switched from 0.914 to 2.x and I am quite "optimistic" that I will find much more important things to be changed/improved when working on the new design I do with Uatu's "graphical support". Remember, for example, the zone problem and my question for resizable editor windows:

Another, minor thing which also annoyed me in 0.914: There are only 16 zones, but 192 wall (and background) slots. When the designer has, e.g., just used the wall slots 33-48 and changes from the wall mode to the slot mode, the legend at the bottom of the window still shows the numbers 33-48. This did not annoy me that much in 0.914 because at least the colours remained the same (so that it was quite clear that 1=33, 2=34 and so on), but in editor vers. 2.35, the colours of the slots change (they are different for slots 1-16 compared to all other slots). This colour change is even more confusing. Of course, one can overcome this by chosing wall slots 1-16 before switching into the zone mode. But if possible, it should work that way that when switching to the zone mode, the numbers in the legend should automatically change to 1-16. (Same with entry points, by the way, but I never use this tool.)

Finally (I may have asked earlier): Would it be much of an effort to make some of the windows in the editor resizable? This would be particularly helpful for the event editor window...

The zone problem is not really disturbing for me, but could be confusing people who are new to the editor. In this context, I would also like to know how much effort it would be to increase the number of zones, since zones are a very useful tool.

And it would be really, really great if it was possible to make certain editor window bigger, for example the event editor window.
Find four contributions to the Pre-Generated Character Mini-Module Design Contest on my homepage.
New: THE AMBASSADOR'S LETTER, my contribution to the 7-day-challenge.
DINONYKOS DUNGEON CRAFT DESIGN HOMEPAGE

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2201
Re: Changing death/defeat sounds for NPCs
« Reply #3 on: February 18, 2016, 12:53:42 PM »
Quote
make ...window bigger, for example the event editor window

Are you talking about the window labeled "Event Viewer"?
What is the problem here?  Everything fits nicely into
the window.  What is the advantage of making it be bigger?

The window needs to fit in an 800x600 screen.  Right now it
is about 620x520.

It would be possible to define multiple dialogs for the Event
Viewer.  But at quite some expense.  The implementation is
non-trivial, mostly because the size would have to be specified
somewhere (the config.txt???).  But the bigger price would be
the fact that any changes would have to be made in multiple
places and there is no way I would remember to do that after
a month or so.  Unless there is some trick that I don't know
that would allow dynamic size change (short of rewriting the
Windows dialog-box code).

Offline Dinonykos

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2294
    • Dinonykos Dungeon Craft
Re: Changing death/defeat sounds for NPCs
« Reply #4 on: February 18, 2016, 01:16:18 PM »
The "problem" in the "Event Viewer" is that the section in the upper left, where the events are shown in tree form, is relatively small, around 330x220 px. If this would be larger, one could see more events at the same time. I personally lose the overview sometimes when I have like 30 or more events at the same square. This is particularly the case when several logic blocks are connected.

It would already be a little better if the buttons below would be shifted (see attached screenshot) and the section would be enlarged respectively, then, at least 4 more events could be shown.

Find four contributions to the Pre-Generated Character Mini-Module Design Contest on my homepage.
New: THE AMBASSADOR'S LETTER, my contribution to the 7-day-challenge.
DINONYKOS DUNGEON CRAFT DESIGN HOMEPAGE

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2201
Re: Changing death/defeat sounds for NPCs
« Reply #5 on: February 18, 2016, 04:20:34 PM »
Ah!  I see.

I think we can do a lot with this.
I'll work on it.

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2201
Re: Changing death/defeat sounds for NPCs
« Reply #6 on: February 18, 2016, 04:45:29 PM »
Try the attached and let me know what you think.

Offline Dinonykos

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2294
    • Dinonykos Dungeon Craft
Re: Changing death/defeat sounds for NPCs
« Reply #7 on: February 19, 2016, 12:26:56 AM »
Excellent! This is much, much better. The new order of the buttons may confuse a little bit in the beginning, but I think this is a very good compromise!

Thank you very much! Is this editor version .239, then?
« Last Edit: February 19, 2016, 12:29:30 AM by Dinonykos »
Find four contributions to the Pre-Generated Character Mini-Module Design Contest on my homepage.
New: THE AMBASSADOR'S LETTER, my contribution to the 7-day-challenge.
DINONYKOS DUNGEON CRAFT DESIGN HOMEPAGE

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2886
  • FRUA Lives!
    • Lands of Adventure
Re: Changing death/defeat sounds for NPCs
« Reply #8 on: February 19, 2016, 07:33:33 AM »
Any chance of a screenshot of what it looks like now?
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2201
Re: Changing death/defeat sounds for NPCs
« Reply #9 on: February 19, 2016, 08:37:56 AM »
Quote
Is this editor version .239, then
No.  For now just a private version for testing.
The next 'official' release will have this change and
any adjustments we make to it.

Offline Dinonykos

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2294
    • Dinonykos Dungeon Craft
Re: Changing death/defeat sounds for NPCs
« Reply #10 on: February 19, 2016, 10:13:03 AM »
I have attached below what the window looks like on the system I use.
Find four contributions to the Pre-Generated Character Mini-Module Design Contest on my homepage.
New: THE AMBASSADOR'S LETTER, my contribution to the 7-day-challenge.
DINONYKOS DUNGEON CRAFT DESIGN HOMEPAGE

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2886
  • FRUA Lives!
    • Lands of Adventure
Re: Changing death/defeat sounds for NPCs
« Reply #11 on: February 19, 2016, 07:56:07 PM »
That looks really good.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Online manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9712
Re: Changing death/defeat sounds for NPCs
« Reply #12 on: June 01, 2016, 06:26:16 PM »
There are ways to work around NPC death sounds being the same. :)
I would consider however, being able to script the game over message something that we might want to look into.