Can I roll 1d6 for damage?

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
936
Reaction score
578
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,188
Reaction score
172
First Language
English
Code:
1+ Math.randomInt(6)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top