Page 1 of 1

making a trigger for randoms?

Posted: Thu Nov 07, 2013 9:18 pm
by Mikeyn
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?

Re: making a trigger for randoms?

Posted: Mon Dec 09, 2013 1:30 pm
by Deloehne
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.