Create account / Log in

How to report when key used for two purposes

Topics related to the main Vassal engine.

Moderators: Tim M, uckelman

How to report when key used for two purposes

Postby flashsolutions » August 27th, 2013, 1:03 am

I am trying to set up a prototype for a Return To Deck operation. The key I have assigned is CTRL R. I also want to report to the chat window whenever a Return to Deck operation has occured. I added two traits to my prototype, a report action and a return to deck trait. If I assign the CTRL R key to both traits, only the return to deck works and I get no report. If I assign a different key to the Report Action trait, such as CTRL P for instance, the CTRL P does report to the chat window and CTRL R does return the piece to the deck, but I need for one key to do both simultaneously.

Is there a way to do this?
flashsolutions
 
Posts: 8
Joined: August 25th, 2013, 5:59 pm

Re: How to report when key used for two purposes

Postby flashsolutions » August 27th, 2013, 2:38 am

Solved my problem... Had to use a trigger action to send two keys.
flashsolutions
 
Posts: 8
Joined: August 25th, 2013, 5:59 pm

Re: How to report when key used for two purposes

Postby Tim M » August 27th, 2013, 2:42 am

Use a trigger action trait
Listen for Ctrl P
Execute Ctrl R

-----Original Message-----
From: messages [mailto:messages-bounces@vassalengine.org] On Behalf Of
flashsolutions
Sent: Monday, August 26, 2013 8:04 PM
To: messages@vassalengine.org
Subject: [messages] [General Discussion] How to report when key used for two
purposes

I am trying to set up a prototype for a Return To Deck operation. The key I
have assigned is CTRL R. I also want to report to the chat window whenever
a Return to Deck operation has occured. I added two traits to my prototype,
a report action and a return to deck trait. If I assign the CTRL R key to
both traits, only the return to deck works and I get no report. If I assign
a different key to the Report Action trait, such as CTRL P for instance, the
CTRL P does report to the chat window and CTRL R does return the piece to
the deck, but I need for one key to do both simultaneously.

Is there a way to do this?

_______________________________________________
Read this topic online here:
viewtopic.php?p=41830#p41830
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests