WilliamHughes

Veteran
Veteran
Joined
Feb 9, 2016
Messages
55
Reaction score
7
First Language
English
Primarily Uses
Is it possible to roll dice in the damage formula, or something to the same effect?


I could imitate a d6 roll by making it 3 damage with a 100 variance rate, but that would vary all damage, including any static modifiers I wanted to add. 


I want to be able to roll 1d6 + 3 for example. 
 

Warpmind

Twisted Genius
Veteran
Joined
Mar 13, 2012
Messages
937
Reaction score
579
First Language
Norwegian
Primarily Uses
I recommend you look at this thread -




- for ideas. :) It includes numerous functions, including random numbers etc. :)
 

deilin

Ranger/Elementalist
Veteran
Joined
Mar 13, 2012
Messages
1,190
Reaction score
172
First Language
English
Code:
1+ Math.randomInt(6)
 

Latest Threads

Latest Posts

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,661
Members
149,913
Latest member
badalias
Top