I would like a script that would allow me to make different characters say different things when they are hit/use skills/attacking/win/loosing/low on hp etc.
It would be ideal to have a variable chance of saying something. for example:
When hit:
Say Nothing (frequency 4)
OUCH.mp3 (frequency 5)
THATHURTS.mp3 (frequency 10)
So... the character would have a X/Y chance to say any given line where X is the frequency of that line and Y is the sum of the frequencies of all lines for a given action (getting hit/ hitting/ casting, etc).
It would be ideal to have a variable chance of saying something. for example:
When hit:
Say Nothing (frequency 4)
OUCH.mp3 (frequency 5)
THATHURTS.mp3 (frequency 10)
So... the character would have a X/Y chance to say any given line where X is the frequency of that line and Y is the sum of the frequencies of all lines for a given action (getting hit/ hitting/ casting, etc).