Roll 2 different dice Question

I am working on my first Vassal Module and I am sure this is probably a simple question to answer.

I am trying to make an action which will roll two different dice (D6 and D10) and use the results in the message.
The problem I have is that when I try and create an action and display the message (Using display message in the action properties) with the results of those two dice buttons, I do not get that current roll I get the previous results.

Is there an even easier way I am just missing?

The only way I have been able to do it right is to create and action and add three send hotkeys

  1. To roll D6
  2. To Roll D10
  3. To Report the results. (Created an action to report the D6 and D10 results)

This seems like it is a rather bulky way of doing this and was hoping someone can tell me what I am missing since I am new.

Thanks,

It sounds like the the Report Action trait is firing before the die roll.
Are you using a trigger to execute the die rolls?

  • M.

On 1 September 2010 00:56, Woebringer philliplwong@hotmail.com wrote:

I am working on my first Vassal Module and I am sure this is probably a
simple question to answer.

I am trying to make an action which will roll two different dice (D6 and
D10) and use the results in the message.
The problem I have is that when I try and create an action and display
the message (Using display message in the action properties) with the
results of those two dice buttons, I do not get that current roll I get
the previous results.

Is there an even easier way I am just missing?

The only way I have been able to do it right is to create and action and
add three send hotkeys

  1. To roll D6
  2. To Roll D10
  3. To Report the results. (Created an action to report the D6 and D10
    results)

This seems like it is a rather bulky way of doing this and was hoping
someone can tell me what I am missing since I am new.

Thanks,


Read this topic online here:
https://forum.vassalengine.org/t/roll-2-different-dice-question/3232/1


messages mailing list
messages@vassalengine.org
vassalengine.org/mailman/listinfo/messages


Michael Kiefte, Ph.D.
Associate Professor
School of Human Communication Disorders
Dalhousie University
Halifax, Nova Scotia, Canada
tel: +1 902 494 5150
fax: +1 902 494 5151

It sounds like the the Report Action trait is firing before the die roll.� Are you using a trigger to execute the die rolls?

- M.

On 1 September 2010 00:56, Woebringer <philliplwong@hotmail.com> wrote:

I am working on my first Vassal Module and I am sure this is probably a
simple question to answer.

I am trying to make an action which will roll two different dice (D6 and
D10) and use the results in the message.
The problem I have is that when I try and create an action and display
the message (Using display message in the action properties) with the
results of those two dice buttons, I do not get that current roll I get
the previous results.

Is there an even easier way I am just missing?

The only way I have been able to do it right is to create and action and
add three send hotkeys
1) To roll D6
2) To Roll D10
3) To Report the results. (Created an action to report the D6 and D10
results)

This seems like it is a rather bulky way of doing this and was hoping
someone can tell me what I am missing since I am new.

Thanks,

_______________________________________________
Read this topic online here:
https://forum.vassalengine.org/t/roll-2-different-dice-question/3232/1
_______________________________________________
messages mailing list
[messages@vassalengine.org](mailto:messages@vassalengine.org)
[vassalengine.org/mailman/listinfo/messages](http://www.vassalengine.org/mailman/listinfo/messages)




--
Michael Kiefte, Ph.D.
Associate Professor
School of Human Communication Disorders
Dalhousie University
Halifax, Nova Scotia, Canada
tel: +1 902 494 5150
fax: +1 902 494 5151

If this turns out to be related to trait order, note I added a couple of new sections to

vassalengine.org/wiki/GamePiece

that describe how trait order and keystrokes work.

My initial stab at it was to create an an action button and was trying to use its built in display message and send 2 hotkeys to roll the dice. This created the issue where the built in display message was not getting the updated die results. (Which is weird cause the message is actually below the die results.

  • 3 (D6)
  • 9 (D10)
  • Weapon Damage = 1 + (1+SIZ-10) (Bonus Damage Cannot Exceed 1)

I did get it to work by not using the built in display message and created a Report D6 and D10 results action and fired that off after the two die rolls also sending hotkey.

The Reason I did not like this solution is because I was hoping to create 1 action button per roll but as it stands with my working solution I need to create 1 action button and 1 report die results action per roll. And that seemed pretty bulky.

I was just hoping that there was an easier and cleaner way to combine 2 different dice in a roll and use their results in a message.

The first thing the Action Button does is to create the message from the
current state. The message is not actually displayed until the action has
occurred.

The best solution is to associate the action with a piece which may be
invisible. Then use a Report Action trait.

  • M.

On 1 September 2010 12:37, Woebringer philliplwong@hotmail.com wrote:

My initial stab at it was to create an an action button and was trying
to use its built in display message and send 2 hotkeys to roll the dice.
This created the issue where the built in display message was not
getting the updated die results. (Which is weird cause the message is
actually below the die results.

  • 3 (D6)
  • 9 (D10)
  • Weapon Damage = 1 + (1+SIZ-10) (Bonus Damage Cannot Exceed 1)

I did get it to work by not using the built in display message and
created a Report D6 and D10 results action and fired that off after the
two die rolls also sending hotkey.

The Reason I did not like this solution is because I was hoping to
create 1 action button per roll but as it stands with my working
solution I need to create 1 action button and 1 report die results
action per roll. And that seemed pretty bulky.

I was just hoping that there was an easier and cleaner way to combine 2
different dice in a roll and use their results in a message.

“mkiefte” wrote:

It sounds like the the Report Action trait is firing before the die
roll.
Are you using a trigger to execute the die rolls?

  • M.

On 1 September 2010 00:56, Woebringer wrote:

I am working on my first Vassal Module and I am sure this is
probably a
simple question to answer.

I am trying to make an action which will roll two different dice (D6
and
D10) and use the results in the message.
The problem I have is that when I try and create an action and
display
the message (Using display message in the action properties) with
the
results of those two dice buttons, I do not get that current roll I
get
the previous results.

Is there an even easier way I am just missing?

The only way I have been able to do it right is to create and action
and
add three send hotkeys

  1. To roll D6
  2. To Roll D10
  3. To Report the results. (Created an action to report the D6 and
    D10
    results)

This seems like it is a rather bulky way of doing this and was
hoping
someone can tell me what I am missing since I am new.

Thanks,


Read this topic online here:
viewtopic.php?p=19541#p19541[1]


messages mailing list
messages@vassalengine.org[2]
vassalengine.org/mailman/listinfo/messages[3]http://www.vassalengine.org/mailman/listinfo/messages[3]


Michael Kiefte, Ph.D.
Associate Professor
School of Human Communication Disorders
Dalhousie University
Halifax, Nova Scotia, Canada
tel: +1 902 494 5150
fax: +1 902 494 5151

It sounds like the the Report Action trait is firing before the die
roll.� Are you using a trigger to execute the die rolls?- M.On 1
September 2010 00:56, Woebringer philliplwong@hotmail.com wrote:
I am working on my first Vassal Module and I am sure this is probably
a
simple question to answer.

I am trying to make an action which will roll two different dice (D6
and
D10) and use the results in the message.
The problem I have is that when I try and create an action and display
the message (Using display message in the action properties) with the
results of those two dice buttons, I do not get that current roll I
get
the previous results.

Is there an even easier way I am just missing?

The only way I have been able to do it right is to create and action
and
add three send hotkeys

  1. To roll D6
  2. To Roll D10
  3. To Report the results. (Created an action to report the D6 and D10
    results)

This seems like it is a rather bulky way of doing this and was hoping
someone can tell me what I am missing since I am new.

Thanks,


Read this topic online here:
viewtopic.php?p=19541#p19541[4]


messages mailing list
messages@vassalengine.org[5]
vassalengine.org/mailman/listinfo/messages[6]http://www.vassalengine.org/mailman/listinfo/messages[6]

– Michael Kiefte, Ph.D.Associate ProfessorSchool of Human
Communication DisordersDalhousie UniversityHalifax, Nova Scotia,
Canadatel: +1 902 494 5150
fax: +1 902 494 5151

The first thing the Action Button does is to create the message from the current state. The message is not actually displayed until the action has occurred.

The best solution is to associate the action with a piece which may be invisible. Then use a Report Action trait.

- M.

On 1 September 2010 12:37, Woebringer <[philliplwong@hotmail.com](mailto:philliplwong@hotmail.com)> wrote:
My initial stab at it was to create an an action button and was trying
to use its built in display message and send 2 hotkeys to roll the dice.
This created the issue where the built in display message was not
getting the updated die results. (Which is weird cause the message is
actually below the die results.
* 3 (D6)
* 9 (D10)
* Weapon Damage = 1 + (1+SIZ-10) (Bonus Damage Cannot Exceed 1)

I did get it to work by not using the built in display message and
created a Report D6 and D10 results action and fired that off after the
two die rolls also sending hotkey.

The Reason I did not like this solution is because I was hoping to
create 1 action button per roll but as it stands with my working
solution I need to create 1 action button and 1 report die results
action per roll. And that seemed pretty bulky.

I was just hoping that there was an easier and cleaner way to combine 2
different dice in a roll and use their results in a message.



"mkiefte" wrote:
It sounds like the the Report Action trait is firing before the die
roll.
Are you using a trigger to execute the die rolls?

- M.

On 1 September 2010 00:56, Woebringer wrote:

> I am working on my first Vassal Module and I am sure this is
probably a
> simple question to answer.
>
> I am trying to make an action which will roll two different dice (D6
and
> D10) and use the results in the message.
> The problem I have is that when I try and create an action and
display
> the message (Using display message in the action properties) with
the
> results of those two dice buttons, I do not get that current roll I
get
> the previous results.
>
> Is there an even easier way I am just missing?
>
> The only way I have been able to do it right is to create and action
and
> add three send hotkeys
> 1) To roll D6
> 2) To Roll D10
> 3) To Report the results. (Created an action to report the D6 and
D10
> results)
>
> This seems like it is a rather bulky way of doing this and was
hoping
> someone can tell me what I am missing since I am new.
>
> Thanks,

>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=19541#p19541[1]
> _______________________________________________
> messages mailing list
> [messages@vassalengine.org](mailto:messages@vassalengine.org)[2]
> [vassalengine.org/mailman/listinfo/messages](http://www.vassalengine.org/mailman/listinfo/messages)[3]
>
>


--
Michael Kiefte, Ph.D.
Associate Professor
School of Human Communication Disorders
Dalhousie University
Halifax, Nova Scotia, Canada
tel: +1 902 494 5150
fax: +1 902 494 5151


It sounds like the the Report Action trait is firing before the die
roll.� Are you using a trigger to execute the die rolls?- M.On 1
September 2010 00:56, Woebringer <[philliplwong@hotmail.com](mailto:philliplwong@hotmail.com)> wrote:
I am working on my first Vassal Module and I am sure this is probably
a
simple question to answer.

I am trying to make an action which will roll two different dice (D6
and
D10) and use the results in the message.
The problem I have is that when I try and create an action and display
the message (Using display message in the action properties) with the
results of those two dice buttons, I do not get that current roll I
get
the previous results.

Is there an even easier way I am just missing?

The only way I have been able to do it right is to create and action
and
add three send hotkeys
1) To roll D6
2) To Roll D10
3) To Report the results. (Created an action to report the D6 and D10
results)

This seems like it is a rather bulky way of doing this and was hoping
someone can tell me what I am missing since I am new.

Thanks,


_______________________________________________
Read this topic online here:
viewtopic.php?p=19541#p19541[4]
_______________________________________________
messages mailing list
[messages@vassalengine.org](mailto:messages@vassalengine.org)[5]
[vassalengine.org/mailman/listinfo/messages](http://www.vassalengine.org/mailman/listinfo/messages)[6]

-- Michael Kiefte, Ph.D.Associate ProfessorSchool of Human
Communication DisordersDalhousie UniversityHalifax, Nova Scotia,
Canadatel: +1 902 494 5150
fax: +1 902 494 5151


Thanks for you Help, I will try and do that for my phase 2 where I try and trigger the attack from the piece and not the roll button.

[quote=“mkiefte”]
The first thing the Action Button does is to create the message from the
current state. The message is not actually displayed until the action has
occurred.

The best solution is to associate the action with a piece which may be
invisible. Then use a Report Action trait.

  • M.

On 1 September 2010 12:37, Woebringer wrote:

My initial stab at it was to create an an action button and was trying
to use its built in display message and send 2 hotkeys to roll the dice.
This created the issue where the built in display message was not
getting the updated die results. (Which is weird cause the message is
actually below the die results.

  • 3 (D6)
  • 9 (D10)
  • Weapon Damage = 1 + (1+SIZ-10) (Bonus Damage Cannot Exceed 1)

I did get it to work by not using the built in display message and
created a Report D6 and D10 results action and fired that off after the
two die rolls also sending hotkey.

The Reason I did not like this solution is because I was hoping to
create 1 action button per roll but as it stands with my working
solution I need to create 1 action button and 1 report die results
action per roll. And that seemed pretty bulky.

I was just hoping that there was an easier and cleaner way to combine 2
different dice in a roll and use their results in a message.