# Attempting to add a "Reset Color" sound effect

**URL:** <https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578>\
**Category:** ProffieOS\
**Created:** [November 6, 2022, 3:37am UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578 "2022-11-06T03:37:53Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Fett263](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/fett263/32/214_2.png) [@Fett263](https://crucible.hubbe.net/u/Fett263)\
**Post date:** [November 7, 2022, 3:44pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/21 "2022-11-07T15:44:08Z")

</div>

> [@Caiwyn](#):
>
> What happens if I select a number that doesn’t exist? Like, if there’s only a single ccend.wav and I do: `SFX_ccend.Select(1);`

It would only play the sound that exists so it wouldn’t actually select. To do what you’re wanting you’d need to make sure you have the two sounds.

---

<div class="post-metadata">

**Author:** ![Fett263](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/fett263/32/214_2.png) [@Fett263](https://crucible.hubbe.net/u/Fett263)\
**Post date:** [November 7, 2022, 3:48pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/22 "2022-11-07T15:48:33Z")

</div>

> [@NoSloppy](#):
>
> Could we have Select() set a different (or custom) EFFECT sound?

No, Select() just sets the number file played when the SFX is used, it doesn’t change the sound used. To change the sounds you’d have to edit hybrid\_font which is not what was being asked.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [November 7, 2022, 3:52pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/23 "2022-11-07T15:52:03Z")

</div>

Sorry. Yes, I didn’t see that the “normal” use was specified as well, and was referring to what would happen if the normal was left to randomize.

---

<div class="post-metadata">

**Author:** ![Fett263](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/fett263/32/214_2.png) [@Fett263](https://crucible.hubbe.net/u/Fett263)\
**Post date:** [November 7, 2022, 4:01pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/24 "2022-11-07T16:01:16Z")

</div>

> [@NoSloppy](#):
>
> referring to what would happen if the normal was left to randomize.

Once SFX.Select() is used that sound will no longer randomize it will only ever play the selected number unless you have another function use Select(X) to set select to a different file or Select(-1) which changes the sound back to random. Select() will not reset until you change presets or change it with a different function.

---

<div class="post-metadata">

**Author:** ![Caiwyn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/caiwyn/32/2892_2.png) [@Caiwyn](https://crucible.hubbe.net/u/Caiwyn)\
**Post date:** [November 7, 2022, 4:04pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/25 "2022-11-07T16:04:40Z")

</div>

> [@Fett263](#):
>
> It would only play the sound that exists so it wouldn’t actually select.

Cool, just checking. Wanted to make sure I didn’t have to build any extra error handling in case there was only a single ccend file.

---

<div class="post-metadata">

**Author:** ![Fett263](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/fett263/32/214_2.png) [@Fett263](https://crucible.hubbe.net/u/Fett263)\
**Post date:** [November 7, 2022, 4:11pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/26 "2022-11-07T16:11:36Z")

</div>

I “believe” it’s already handled in effect.h but all instances that I’ve actually used it I have multiple files. I’d say test, if it doesn’t play then we’d just add the handler to the base OS since it “should” be there, but I believe it’s already handled if memory serves.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [November 7, 2022, 4:12pm UTC](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578/27 "2022-11-07T16:12:32Z")

</div>

Cool, understood, good to know. Thanks for the clarification.

[Previous page](https://crucible.hubbe.net/t/attempting-to-add-a-reset-color-sound-effect/2578.md?page=1)
