I have a mod which has 2 main boards, and each board has it’s own
force pools associated with it. My problem is that some of the
units can migrate from their usual main board to the other, and if
they are used there, they need to show up in the force pool for the
board they are currently on, not go back to their original force
pool. Right now, all units use a send-to trait to send them back to
their force pools, but it won’t matter which board they are on, they
will always go back to their original force pools. I can explicitly
make the player choose the right location by adding another send-to
command, but I’d rather have the one command work by knowing which
board the unit currently resides on and send it to the corresponding
force pool.
Is this possible?
I’m not sure about this, so perhaps we can get confirmation from one
of our experienced module designers, but perhaps something like the
following would work:
What I’m not sure about is whether the Send-To trait can use a
dynamic? property value as the location to be sent to.
If so, you could set up a trigger for when a piece ends up on a given
map that sets the target property value to the proper force pool.
Or, set up a Dynamic Property that tracks which pool it should be going to. You will need a command to transfer it between the two pools. Then you set up Send-To commands to both pools and use a Restrict Commands trait based on the Dynamic Property to hide the Send-To command that does not apply.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com )