Try to find the code if you get a inventory item I can play a sound ?
Probably the easiest way is to use the Play Sound command (PlaySound(int sound); if you're scripting) just after the Add Inventory command.
Ok thanks I'll try it .
Alternatively, the on_event function may be made use of:
main global script:
function on_event(int event, int data) {
Ã, Ã, if (event == ADD_INVENTORY) PlaySound(xxx);
}
Thanks Scorpiorus , The sound was kind of annoying so went with a txt prompt .
Ach, I had all forgotten on_event...
Wow that works slick for messages to .
function on_event(int event, int data) {
if (event == ADD_INVENTORY) DisplayMessage(506);
}