Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_dice

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Roll dice.

Usage
Sample capx
There are 3 ways to roll dice and get the result as the sum of these dice.
A. Call "Expression:Roll". The parameters of this expression could be
  1. count of dice, i.e. how many dice in this rolling.
  2. faces of each die, i.e. the points of each die comes from 1 to "faces".
B. Or call "Action:Roll". The parameters of this action are the same as "Expression:Roll" in previous section. Then get the result of sum by "Expression:Sum".
C. Call "Expression:Roll" with a string parameter and the format is
"nDm"
n is the count of dice, m is the faces of each die. for example, "4D6" means that rolling 4 dice and each one has 6 faces (the points are 1~6)
Result
Get the rolling result by "Expression:Sum", or get the rolling result of each die by "Expression:Die" with an index parameter start at 0.
Debug panel
It will show the rolling result at debug panel.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About