GAME/EDITING: PROBABILITY and SOUNDS

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

GAME/EDITING: PROBABILITY and SOUNDS

Post by Gambit37 »

To create ambient, random sound effects I'm using floor triggers with the following attributes:

1) Probability 5%
2) No target
3) No action
4) A water drip sound effect

The water drip plays EVERY time the pad is stepped on. I would have thought it should be played ONLY when the probability is matched.

Can this be changed?

Or better still, add an ambient sound effect trigger....
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

That's clearly wrong. It should only be played 1 in 20 times (on average).

Presumably I've put the "play sound" code outside the "check to see if it's triggered" if test. Doh.
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

This is still broken in v0.34 -- sounds play every time regardless of probability setting.
User avatar
Pedro
Journeyman
Posts: 69
Joined: Sun Nov 14, 2004 11:48 pm
Location: Poland

Post by Pedro »

I'm not sure it's actually wrong. Take under consideration a lock and lockpicks. You should hear a "click" sound each time while using lockpicks on the lock regardless the probability. The same reffers to pressure pads, buttons, etc. Maybe you should consider another approach to enable an ambient effects. It could be availible in Levels->Edit options ?

P.
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Good point. All the more reason to have ambient sounds! See my other posts on this....
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

GG, we archived this thread after pedro argued my point was unfounded. However, if the whole ambient sounds/music thing is a massive task, as a concession, would you consider adding a trigger parameter that plays the sounds according to the probability setting? This would go some way to adding one-shot ambient sounds to a dungeon.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Gambits original suggestion is now handled by the ambient sound object in V0.35.

The current behaviour of triggers (i.e. always playing the sound, but only doing the action if the probability is right) as pointed out by pedro is therefore preserved.
Post Reply