PDA

View Full Version : intercept dice



Grimmbart
December 20th, 2009, 15:27
Hi

I would like to change dice value before the landed in the chat box. How can i do that.

That's for d100.

The result is given : d10 and d100.
I want to have d100 and d10.

Foen
December 20th, 2009, 15:35
You have to over-ride the onDiceLanded event and create your own post to the chat window. This is quite tricky, but you can see it the RMC ruleset (*very* complex, because it also allows for different types of exploding dice) and the Base Ruleset (which replaces separate d10+d100 results with a single 1-100 result).

The Base Ruleset can be found on the FG Wiki (https://oberoten.dyndns.org/fgwiki/index.php/Main_Page).

Hope that helps

Stuart

Grimmbart
December 20th, 2009, 18:05
Thank's

Now it's OK.
I had just forgotten to "deliverMessage();" at the end of the function !!