[messages] Edit: Re: [Module Design] Delete breaks Trigger Action

barbanera barbanera at fantafoot.com
Tue Jul 10 03:30:16 MST 2012


[This message has been edited.]

as a general rule if you need to do things on a command (like CTRL-E) on
a piece and in the end delete the piece itself, then you need to have a
trigger (firing on CTRL-E) that as its last command fires the delete
trait (CTRL-D, for example.. not CTRL-E again, of course) 

but in your case, if all that CTRL-E does is delete and set global
property and nothing else (in particular: no triggers/report commands),
then it should work if you keep what you have but just make sure that
the set global property is below (i.e. following) the delete trait in
the piece properties: commands are executed bottom-up in the trait order
(except for triggers/reports)

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=35118#p35118


More information about the messages mailing list