state and replace

Is there a way to retain some of the state but not all of it when you replace with other?

What I need is a trick whereby some property values are retained but others are not when a game piece is replaced. It currently doesn’t seem possible, but I may be missing something.

Not really, however there is a work around, first I trigger to Global
properties the values I need, then replace the piece and have the
replacement piece read the Global properties to set itself how I need it
according to those values

Post generated using Mail2Forum (mail2forum.com)

That would have worked, but it was going to be painful. I’ve added an option to the Replace trait so that it may only attempt to match the states of those traits that occur above it in the list.

  • M.

2008/7/30 Tim McCaron <timothy.mccarron@sbcglobal.net (timothy.mccarron@sbcglobal.net)>

Post generated using Mail2Forum (mail2forum.com)

v. good idea!


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)