Staredit Network

Staredit Network -> UMS Assistance -> Dice System
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-25 at 17:19:22
Lets say im making a game Life:the board game and i first want everyone to take turn rolling a dice to see who goes first. I was wonder how would I would use triggers 2 detect whose has the higher number.
Is there something under conditions where it says something like
current players has most death
or current player with the highest score.
Report, edit, etc...Posted by Vindexus on 2005-08-25 at 17:42:30
QUOTE(344654 @ Aug 25 2005, 04:19 PM)
Lets say im making a game Life:the board game and i first want everyone to take turn rolling a dice to see who goes first.  I was wonder how would I would use triggers 2 detect whose has the higher number.
Is there something under conditions where it says something like
current players has most death
or  current player with the highest score.
[right][snapback]298179[/snapback][/right]

Yes there is. You could use random switches to give each a player a value of 1-6 custom score, then detect in a seperate trigger who has the most custom score.
Report, edit, etc...Posted by The_Shattered_moose on 2005-08-25 at 19:51:49
Or create a certain number of units in a holding location equal to thier roll, and then use command the most at.
Report, edit, etc...Posted by PCFredZ on 2005-08-25 at 19:59:13
QUOTE(344654 @ Aug 25 2005, 05:19 PM)
Lets say im making a game Life:the board game and i first want everyone to take turn rolling a dice to see who goes first.  I was wonder how would I would use triggers 2 detect whose has the higher number.
Is there something under conditions where it says something like
current players has most death
or  current player with the highest score.
[right][snapback]298179[/snapback][/right]

The condition is "Highest Score". You can also use "Commands Most Units", "Commands Most Units At Location", or "Most Resources".

Do you need any help with the randomizing part?
Report, edit, etc...Posted by M_s4 on 2005-08-25 at 22:16:19
Randomizing's easy u can do it with like 3 switches, just randomize them all, and make it like-
S1-Set
S2-Set
S3-Set
=1
S1-Set
S2-Set
S3-Cleared
=2
S1-Set
S2-Cleared
S3-Set
=3
S1-Cleared
S2-Set
S2-Set
=4
S1-Set
S2-Cleared
S3-Cleared
=5
S1-Cleared
S2-Set
S3-Cleared
=6
and if u get either:
S1-Cleared
S2-Cleared
S3-Set
or
S1-Cleared
S2-Cleared
S3-Cleared
just rerandomize it and see if you get one of the other 6,
but make the waits short cause it'll be weird if you get the bottom two like 3 times.
Report, edit, etc...Posted by Sniper on 2005-08-25 at 22:26:30
To calculate probability just do this (2^number of switches). Saves you a lot of thinking.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-25 at 23:05:45
Thanks guys i got it to work
Next Page (1)