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" 
<[EMAIL PROTECTED]> 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/
 



Reply via email to