making a trigger for randoms?

Post Reply
Mikeyn
Posts: 1
Joined: Thu Nov 07, 2013 9:15 pm

making a trigger for randoms?

Post by Mikeyn » Thu Nov 07, 2013 9:18 pm

Was wondering is there any way to make a trigger that when you do a /random it will tell you what person rolled and what there number was?

Deloehne
Posts: 14
Joined: Wed Jul 18, 2012 6:40 pm

Re: making a trigger for randoms?

Post by Deloehne » Mon Dec 09, 2013 1:30 pm

Mikeyn wrote:Was wondering is there any way to make a trigger that when you do a /random it will tell you what person rolled and what there number was?
The results of a /ran appear on two separate lines

[Mon Dec 09 09:13:34 2013] **A Magic Die is rolled by Giltbanc.
[Mon Dec 09 09:13:34 2013] **It could have been any number from 0 to 1000, but this time it turned up a 803.

Parsing the second line is trivial: "but this time it turned up a {S}" would do the trick. Associating the number with the name on a prior line seems harder to me. It requires identifying the Magic Die roll, storing the name, and then parsing the next instance of "but this time it turned up." I don't know the ins and outs of the programming of GINA, but I imagine this would require a significant additional block of code that would be used rarely if at all.

Post Reply