Create account / Log in

Assign double values to a property

Discussion area for the development team.

Moderators: uckelman, Tim M

Assign double values to a property

Postby xujunnju » February 2nd, 2020, 5:30 pm

Hi, All,
I am now developing a vassal module for a war game.
In this game I assign every piece with a "space occupation" property which
can be ground/air to define ground units and air units, but there is
a unique unit which can be both ground and air,
is that possible that I can assign two values, like ground and air to space occupation
property, so when I use global key command to search ground units or air units,
this unique unit can both be found and acted upon?
I have tried to add two marker trait like: space occupation=ground and space occupation=air
to this unit piece, but only one will work, the other one seems to be blocked since
they have the same property name.
Posts: 6
Joined: November 28th, 2018, 3:52 am

Re: Assign double values to a property

Postby JoelCFC25 » February 2nd, 2020, 9:54 pm

I would probably attack this problem from the other direction. Instead of having your GKC search for just ground units, search for ground *or* ground/air. Then you can just make the Marker trait value for the unique unit "ground/air".
Posts: 826
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN

Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest