I get you, Tim, and really appreciate your burning some brainpower 
on this.

> Whenever the GKC is fired it acts upon a trigger on that layer 
which changes
> that layer level and then also checks its own level# for its own 
GKC
> 
Hmm..  I'm not sure I can envision what you're saying here...


Otherwise, I think I've got the "second hand" counter working for 
individual increments but I may have done it wrong.  We'll call it 
big wheel and small wheel: W and s
where 0<=W<15 (and in Vassal-speak 1<=W_Level<16) while 1=<s=<3.

I have it set up that ">>" increments s upward and "<<" deccrements 
it downward. Two triggers update dynamic variables counting s_Level 
and W_level, and, decrement W when s_level = 1 on a decrement 
command, or increment W when s_level = 3 on an increment command.  
So far so good.  The counter will walk nicely up and down its 
assigned path.

The problem is that I cant get another trigger to fire ">>"  or "<<" 
repeatedly unless I get rid of the conditions conditions on those 
two trigger commands.  I guess it's a bit tricky to try to set up 
nested loops in Vassal...

It may be that I don't have enough dynamic variables, or that 
the "<<" and ">>" loops are self referential... or it may be that 
I'd do better resetting s to 1 instead of allowing it to loop...

Thanks again for your suggestions, 

Carrington 

--- In [email protected], "Tim McCaron" 
<[EMAIL PROTECTED]> wrote:
>
> If I read and understand this right you should be able to do this 
however
> the looping is tricky using your 16 X 3 layer setup
> 
> The best analogy I can think of is a analog watch -the seconds 
hand is a
> allowed to wrap around. a corresponding GKC is automatically fired 
to check
> and advance (or reverse) the minute hand (next layer) based on 
direction
> whenever the seconds = 0 (Seconds Layer_Level = 1), repeat for 
minutes to
> hours.
> 
> Whenever the GKC is fired it acts upon a trigger on that layer 
which changes
> that layer level and then also checks its own level# for its own 
GKC
> 
>  
> 
> Not to clear I know. English has never been my strong suit :-)
> 
>  
> 
>   _____  
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of carrington_ward
> Sent: Sunday, October 01, 2006 2:12 PM
> To: [email protected]
> Subject: [vassalengine] Triggering triggers with triggers?
> 
>  
> 
> 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
> 
> 
> 
> 
> 
> [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/
 



Reply via email to