Ok. I see what you are doing, you just need to tie the two parts together.
As before use the trigger passively and also add a global key command trait
to the counter which in turn will fire your global variable/piece/counter
whatever
Best way is to think of the flow process and how to achieve it and put it
together in that order
Ill give an example using Piece A acting on Piece/counter/variable/Global
Key Property B
Piece A has a passive trigger trait that executes CTRL 1 when CurrentMap =
Main
It also has a Global key command trait with a local key of CTRL 1 and a
Global key of CTRL 2 and a property filter BasicPiece = Piece B
Piece B also has a passive trigger with no filter listening for CTRL 2 with a
firing command of CTRL 3
This is all thats needed to make it work. If youve followed so far you
should be able to see how the flow works that I am affecting another thing
through another indirectly.
When Piece A enters the Map called Main it silently executes the command CTRL
1 because of the passive trigger which is tied to the GKC trait which as a
result automatically executes a global CTRL 2 command on any Piece called Piece
B. Piece B hears the CTRL 2 command via its passive trigger and therefore
performs its CTRL 3 command (whatever it is it needs to go do)
Hope that helps. A perfect example of what your trying to do can be found in
the Twilight Struggle Mod, although it will take quite some digging to find the
specific instance of it, as it is a mess of triggers/GKC cause and effects all
over the place J
---------------------------------
From: Timothy Mccarron [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 2:50 PM
To: McCarron, Tim
Subject: Re: [vassalengine] Re: Card Game Help
teferi13 <[EMAIL PROTECTED]> wrote:
> 1) Is there some event in the base API for something like a "enters
> zone" or "enters board". Basically when a player plays a card from
> their hand (via drag and drop) I want the board into which the card
> was placed to perform some action. I saw trigger action as a quality
> for cards, but that seems to wait for a key combination rather than
> triggering off the movement of a card. I know there must be some
> event like this, because the messages that report in the main chat
> seem to trigger off this, but I can't find a way to perform some
> action on these events.
>
>
>
> Yes, can be done, try using a passive trigger - you don't always have to
> have a key for triggers to work, a property filter such as
CurrentZone = X
> under the trait of the actual piece will work fine
I tried some of that, but the problem is that when a trigger action
goes off, it seems to only apply the command to "the card". For
instance, I created a score global variable, and I created a menu to
modify it. I assigned that menu a command (ctrl+1) to activate it. I
tried assigning a trigger command for when the card enters the map
window that has the global property, and it performs the command, but
somehow only in the context of the card, not the window. I know
because I changed the command to "flip" instead, and that works.
Also, I can type ctrl+1 myself in the window, and that works fine.
[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/
<*> 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/