From 2fd45f4eebf7e140aa8c4f4977ffbd704fefdf64 Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Mon, 21 May 2018 02:31:14 -0700 Subject: [PATCH] Create dice.dm --- code/modules/admin/verbs/dice.dm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 code/modules/admin/verbs/dice.dm diff --git a/code/modules/admin/verbs/dice.dm b/code/modules/admin/verbs/dice.dm new file mode 100644 index 0000000000..8efa2e9bde --- /dev/null +++ b/code/modules/admin/verbs/dice.dm @@ -0,0 +1,24 @@ +/client/proc/roll_dices() + set category = "Fun" + set name = "Roll Dice" + if(!check_rights(R_FUN)) + return + + var/sum = input("How many times should we throw?") as num + var/side = input("Select the number of sides.") as num + if(!side) + side = 6 + if(!sum) + sum = 2 + + var/dice = num2text(sum) + "d" + num2text(side) + + if(alert("Do you want to inform the world about your game?",,"Yes", "No") == "Yes") + world << "