Tim, Thanks again for your help on this. I'm once again up against Vassal's Clausewitzian character: "in vassal everything is simple, but the simplest things are difficult."
I wonder if anyone has a thought about how to handle a problem I'm facing with Vietnam population: as I noted, I digitized it to match the game: 1-,1_,1+ of two different layers, the numerals and the +/_/- suffix: essentially an eccentric base 3 number system. Once digitized, this presents three challenges, especially if I want to increment the suffix "digits" by more than one -- A) Floor: how to get the suffix digits to stop spinning at 0-: so that decrementing one step from 1- will go to 0+, but 0- decremented one step will stay 0-. B) Ceiling: Ditto at an arbitrary ceiling (often 15). C) Triggers for the above are not bad, but they seem to break repetition: I have not yet found a way to build a trigger that will fire my basic counting triggers repeatedly. (I'd like to be able to build a "decrement two" trigger that should fire two "decrement one" triggers in succession.) I can only use the "decrement one" triggers twice in succession if I get rid of the "property match" conditionals that make them respect floor and ceiling. I'm reluctant to move back to defining "decrement 2" through "decrement 6" and "increment 2 through increment 7" independently -- the trigger conditions look like they'd get awfully nasty, especially because I don't know how to define an "else" command when the triggers fail. I suppose my best bet would be to fall back from the double digit layering to (instead of 16 layers X 3 Layers, I can go to 48 layers). But this is tedious as well... Any thoughts on this would be much appreciated. Best, Carrington --- In [email protected], "Tim McCaron" <[EMAIL PROTECTED]> wrote: > > Hi Carrington, > > > > Lets say you have a basic piece with a layer called HP that consists of 15 > levels. The levels might represent hit points. CTRL A increases the layer > up and CTRL B decreases the layer. CTRL C resets the hit point layer to > level 1 (zero hit points). > > Although not necessary, you can add to it a dynamic marker with matching key > commands. > > > > Now lets say your layer is at full hit points (level 15) and the piece takes > a hit that removes 2/5 of life. Using a trigger add a property filter > "HP_Level = 15" and add these firing commands > > CTRL C (reset the layer to 0 HP) > > CTRL A > > CTRL A > > CTRL A > CTRL A > > CTRL A > > CTRL A > > CTRL A > > CTRL A > > CTRL A > > > > This sets the layer at level 9 (9 HP is 3/5 of 15). You have successfully > performed a division function through trigger, although very rudimentary. > > For as many instances/ possible functions you have add the required number > of triggers using the appropriate filter each time. > > If it's a lot of math and triggers with lots of pieces your best to go with > predefined protos of the trigger sets > > > > Now this seems like a lot of work - and it is, but you don't have to > manually key command the layer, you don't see the layers flipping through > each level, so it looks like it is instantaneous automation > > > > One other thing of importance when using the property filter with level > number is to keep the stack in the right order because you will be using the > same key commands all the time. > > If the first trigger in the stack is HP_Level = 15, the second trigger, HP > _Level = 14 etc, because you are doing division (or subtraction) those > triggers will fire also because the level number is lower than the first - > needs to be reversed to prevent auto firing all the triggers, like wise > opposite when doing addition or multiplication > > > > Hope that make ssense > > > > > > _____ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of carrington_ward > Sent: Sunday, September 24, 2006 4:45 PM > To: [email protected] > Subject: [vassalengine] Re: Layers ~Dynamic property? > > > > Tim, > > Thanks for getting back to me so quickly. However, I'm not sure > what you're suggesting. > Best, > > Carrington > > --- In vassalengine@ <mailto:vassalengine%40yahoogroups.com> > yahoogroups.com, "Tim McCaron" > <timothy.mccarron@> wrote: > > > > Use trigger to tie the two. With a bit of creative thinking you > can perform > > all basic math functions. Associate with the property filter Level > number > > and a reset - anything is possible > > > > > > > > _____ > > > > From: vassalengine@ <mailto:vassalengine%40yahoogroups.com> > yahoogroups.com > [mailto:vassalengine@ <mailto:vassalengine%40yahoogroups.com> > yahoogroups.com] On > > Behalf Of carrington_ward > > Sent: Sunday, September 24, 2006 1:32 PM > > To: vassalengine@ <mailto:vassalengine%40yahoogroups.com> yahoogroups.com > > Subject: [vassalengine] Layers ~Dynamic property? > > > > > > > > I'd like to be able to set a layer directly: e.g. it'd be nice to > be > > able to command a piece, or all pieces on the map to take > > <Layername>_level 5 or <layername>_level 3. > > > > Am I correct that this cannot be done directly -- one either has > to > > increment the layers to the desired point, or reset them (to one > of x > > desired points)... > > > > If so, might there be a way of descending layers from a dynamic > > property? > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > [Non-text portions of this message have been removed] > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vassalengine/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/vassalengine/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
