At 05:15 AM 12/4/2002 +0000, you wrote:
>thanks again that worked perfectly.
>
>sorry to be a pain, but i have another problem...is there any way to
>add an option to all units (like the glob option) but have it come
>into effect AFTER i have added a special character?
>
>or (if this is easier) is there a way to assign a 'type' to all units
>after the special character has been added?
Unless there's a parent/child relationship involved, there is no way for
separate units to affect each other. For example, if you add units X, Y and
Z to your roster, Unit X can't assign a type to unit Z, or force unit Y to
take an option.
What exactly are you trying to achieve? From your description, I'd suggest
the following: Let's say you have a special character called 'Mr Skrill'
who, if present, allows other units to take a 'Skrill Cannon' option. To do
this, Mr Skrill should have the type 'MrSkrill', while the Skrill Cannon
option should assign the type 'SkrillCan' when taken. Then you just need to
write a validation rule (again using trat, similar to the one I proposed in
the last email) that makes sure if any units of type 'SkrillCan' are
present, at least one unit of type 'MrSkrill' is present. The Skrill Cannon
option will always be available to your units, but will produce a
validation error if you select it without first taking Mr Skrill.
--
Colen McAlister (colen@wolflair.com)
Lone Wolf Development
www.wolflair.com