Need some help with codes.. mIRC script, dicing - 15/10/14 01:29 AM
So I need some help with some codes. I'm alright at coding.. but not great. I can modify existing codes, but that's about it aside from simple things.
So what I need..
Dice script:
A single d10 is rolled, and if that roll is above a six, it rolls another d10 and that die is listed as damage.
If the roll is below a six, it says "and misses" instead of "and deals # damage"
So..
!Rollit
<Bot> CharacterName rolls a # and deals # damage!
I'd like the option too for adding or subtracting numbers. 1-3
So..
!Rollit +2
<Bot> CharacterName rolls a #+2 and deals # damage!
So the d10 that is rolled has +2 added to it, not the damage. This should work for -2 as well.. but cap at 3. So no -4 or +4.
Any help is greatly appreciated. Thank you!
So what I need..
Dice script:
A single d10 is rolled, and if that roll is above a six, it rolls another d10 and that die is listed as damage.
If the roll is below a six, it says "and misses" instead of "and deals # damage"
So..
!Rollit
<Bot> CharacterName rolls a # and deals # damage!
I'd like the option too for adding or subtracting numbers. 1-3
So..
!Rollit +2
<Bot> CharacterName rolls a #+2 and deals # damage!
So the d10 that is rolled has +2 added to it, not the damage. This should work for -2 as well.. but cap at 3. So no -4 or +4.
Any help is greatly appreciated. Thank you!