Alright, I was sitting here, at my computer trying to figure out the best way to do this. So I thought, why not post on the forum, they're always helpful. Anyways, perhaps some of you will share your insights on this.
For my mud I added in the basic critical hit that doubles the damage. It was in a snippet found at kyndig.com. Anyways, it just says You critically hit them!, so I wanted to expand it a bit.
So are questions:
I want it to display different messages, for example instead of always hitting them in the chest, it could randomize it and it could hit them in the head and do more damage, or hit them in the foot and only do 1.5x damage instead of double..how would I do that?
Should I just use the rand() function?
If I use rand(), how do I assign the number it generates to a variable that can then be combared in strings?
Any and all help, ideas, suggestions, comments are welcome and will be much appreciated.
For my mud I added in the basic critical hit that doubles the damage. It was in a snippet found at kyndig.com. Anyways, it just says You critically hit them!, so I wanted to expand it a bit.
So are questions:
I want it to display different messages, for example instead of always hitting them in the chest, it could randomize it and it could hit them in the head and do more damage, or hit them in the foot and only do 1.5x damage instead of double..how would I do that?
Should I just use the rand() function?
If I use rand(), how do I assign the number it generates to a variable that can then be combared in strings?
Any and all help, ideas, suggestions, comments are welcome and will be much appreciated.