HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Automated Dice System

07-03-2004, 04:10 AM#1
dspringfield14
Ok, I'm not sure how to make a Automated Dice System (or lets call it ADS) for my new map I'm making. I think I'm on the right track but I'm not sure... I started out by making dialog buttons for whenever its your turn you click "Roll Dice". So the trigger goes like this:

EVENT: Dialog-Dialog Button is Clicked for Your_Turn

CONDITION: Clicked Dialog Button equal to Roll_Dice

ACTION: ???

I know...sad huh...? :( Yea I'm lost from the action part so I really need some help!
07-03-2004, 05:26 AM#2
Ninja73
k... do u want it 2 just randomly select a numeber from 1-6 like a dice, or do u want a dice 2 roll and stuff? If ur wanting a die 2 roll and stuff then i have no idea, but heres how u can get a random dice number:

actions:
set DiceNumber = math - random number from 1 - 6
game text - convert integer to string<Dice Nimber>

done.
07-03-2004, 05:42 AM#3
dspringfield14
^_^ Thank You! Thats exactly what I needed! ^_^

Rep. Points for YOU!