Create account / Log in

Switch trigger action

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

Switch trigger action

Postby panther 2010 » October 9th, 2020, 9:40 am

Hello

Currently, if you want to assign a series of commands to be executed for each given value of a property, it is necessary to define a trigger action for each of the values that the property can assume.

A possible improvement could be represented by a kind of "switch trigger action" which should work according to the following structure:

Switch trigger

Case 0:
command 1;
command 2;
...
command n.

Case 1 :
command 1;
command 2;
...
command n.

Case 2 :
command 1;
command 2;
...
command n.

It's possible? :?:
panther 2010
 
Posts: 119
Joined: July 18th, 2010, 3:04 pm

Re: Switch trigger action

Postby marktb1961 » October 9th, 2020, 9:40 am

++++1 for this.
Platform used:
Vassal 3.4.10
MacOS Big Sur
iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 335
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Switch trigger action

Postby panther 2010 » October 9th, 2020, 12:04 pm

Hello marktb1961,

I'm glad my suggestion was appreciated.

Several years ago I had proposed another one, but, perhaps because the times were not yet ripe, I have not heard anything about it (see viewtopic.php?f=9&t=4142) .

Thank you .

Be well.

Panther 2010

:wink:
panther 2010
 
Posts: 119
Joined: July 18th, 2010, 3:04 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests