Replacement for GetRandomArgument

Hey,

On my DK I’ve set up my macros so I occasionally get a Lich King voiceover playing, similar to the starting zone. They rely on GetRandomArgument, which has been removed in the prepatch as far as I can tell.

Is there any replacement command? Failing that, any mod somebody could recommend that would do the same?

Basic example of what I use:

Summary

#showtooltip
/cast Raise Ally
/run PlaySound(GetRandomArgument(“14803”,“14773”,“14785”,“17220”,“17354”,“17357”,“17252”,“17238”,“17241”),“Ambience”)

Most complicated example:

Summary

#showtooltip
/cast [nomod] Festering Strike
/cast [mod:shift] Apocalypse
/run if IsShiftKeyDown() then _=random()<.10 and PlaySound(GetRandomArgument(“14776”,“14808”,“17252”,“17363”,“17238”),“Ambience”)

Try this

/run local args = {"14803","14773","14785","17220","17354","17357","17252","17238","17241"} PlaySound(args[random(#args)],"Ambience")

Can obviously trim it down with less verbose variable names.

and the sound kit Ids can just be numbers instead of strings

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.