Create account / Log in

$...$ for GKC property specification

Issues with the Vassal engine.

Moderators: uckelman, Tim M

$...$ for GKC property specification

Postby marktb1961 » September 30th, 2020, 4:53 pm

I'm having problems working out how to get a Global Key Command expression to work the way I need it to. Maybe I have another problem, so to keep it simple, should this expression compare the value of the GKC target piece with that of the issuing piece?

LocationName!="$LocationName$"
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: $...$ for GKC property specification

Postby Brent Easton » September 30th, 2020, 10:29 pm

LocationName!=$LocationName$ (Legacy) or
{LocationName!="$LocationName$"} (Beanshell)
User avatar
Brent Easton
 
Posts: 3226
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: $...$ for GKC property specification

Postby marktb1961 » September 30th, 2020, 11:19 pm

Brent Easton wrote:LocationName!=$LocationName$ (Legacy) or
{LocationName!="$LocationName$"} (Beanshell)


I'm using Beanshell and the expression you suggest, but didn't seem to be able to get it to work. I will look again. Thank you.
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


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 3 guests