Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Battle Banter

Gaxx

Member

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).
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top