inventory and sound

Started by Hadjiguru, Sat 21/06/2003 12:59:39

Previous topic - Next topic

Hadjiguru

i want a certain sound-signal being heard everytime the player-character gets an inventory item. can i do that without scripting it for every single item?

Dorcan

A little function will be useful in this case, something like :

function AddInventorySound(int what){
   AddInventory(what);
   PlaySound(1);
}

Hadjiguru

thanks for help! yes, something like such a little function will do it.  i tried it  but it didnt work.
it says "nested function not supported". what now?

Scummbuddy

well, you have a braces problem... one is not closed properly.

But, I'm not sure you would even need this extra function... but perhaps you do.

I would just put the "playsound'' at the same point that i would be adding inventory, or you could have the invetory things hooked up to a point system, and there is a play sound at different point levels or when you just get points... i think that would work.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk