• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding options to child units.

  • Thread starter Thread starter Jaster at mindless.com
  • Start date Start date
J

Jaster at mindless.com

Guest
If a unit has an option, say "Bionic Arms," which is bought at X
points for each model in the unit, including specialists
(type:support) and sergeants (type:leader), but not including special
characters(type:individual), and adds 1 point to one of their stats..
well, basically, how would I do it?

I've done stat and whatever the command is to modify child stats(with
a wildcard for type), which works fine, but the unit is only charged
for models in the parent, effectively giving the upgrade to child
models for free.

How do I get the option to count child units when determining cost?
I guess that's what my question boils down to. And I'm using "coun"
on all my child units. Oh, but the option is given to the parent via
a "more" attribute.. Just thought of that now, I'll have to try
without it...

Any help would be appreciated! Thanks!

-Jaster


-------------------------- eGroups Sponsor -------------------------~-~>
Get FREE long-distance phone calls on Tellme!
Dial 1-800-555-TELL, say "Phone Booth"
http://click.egroups.com/1/9816/16/_/36190/_/971844394/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Tried it without the "more" setup, to no avail..

I suppose it would probably work better if I could just give
the "stat" option to all the child units as well, making it show up
in their individual options screens. I wasn't able to figure out how
to do this though :(

Again, any help would be greatly appreciated! Thanks!

-Jaster


-------------------------- eGroups Sponsor -------------------------~-~>
Dial 1-800-555-TELL -- You Won't Believe Your Ears!
For more details, click here:
http://click.egroups.com/1/9537/16/_/36190/_/971889995/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Tried what without the "more" setup? Please provide me with some context
here so that I know what this is in reference to.

In general, it is usually quite valuable to include the salient points of
any previous email that you make reference to. I get more than 100 emails
every day, so it's impossible for me to remember the context on everything. :-)

Thanks, Rob


At 05:26 PM 10/18/00 +0000, you wrote:
>Tried it without the "more" setup, to no avail..
>
>I suppose it would probably work better if I could just give
>the "stat" option to all the child units as well, making it show up
>in their individual options screens. I wasn't able to figure out how
>to do this though :(
>
>Again, any help would be greatly appreciated! Thanks!
>
>-Jaster


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (650) 726-9689
Lone Wolf Development www.wolflair.com

-------------------------- eGroups Sponsor -------------------------~-~>
Dial 1-800-555-TELL -- You Won't Believe Your Ears!
For more details, click here:
http://click.egroups.com/1/9537/16/_/36190/_/971897864/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
--- In armybuilder@egroups.com, Jaster@m... wrote:
>
> How do I, upon activating an option on the parent unit, apply that
> same option to all the child units of types "support" and "leader"
> (or not of type:individual), as such:
>
[snip]

Try this:
Have an option (wombat for example) with the relevant cost for
support and leader types (which I assume is the same cost - right?)
have an attribute on the option to restrict it by type:
utyp:(leader|support)&!individual

Link that option to the parent and child units using "Cost". On the
child unit, use the local unit attribute "mirr:wombat"
That will cause the child unit to always mirror the state of the
wombat option for the parent, but the utyp: on the option will
prevent it from appearing for individuals.

I just thought of something...
Does the parent unit have the appropriate types?
If not, you'll need two options. One for the parent and one for the
child (wombat and possum). You will then have to play around with the
local unit attribute only: which lets you control a childs option
availability based on a different parent option. Oh, and you'll
probably want the local attribute auto: on the child units as well to
force the option to be selected for the child when it's selected for
the parent.
Something like:
parent - option link - wombat:Cost
child - option link - possum:Cost
child - local unit attributes -
only:wombat=possum-parent
auto

Disclaimer: This is all theory, I haven't actually tried it :-)

Enjoy,
Russell.


-------------------------- eGroups Sponsor -------------------------~-~>
Get FREE long-distance phone calls on Tellme!
Dial 1-800-555-TELL, say "Phone Booth"
http://click.egroups.com/1/9816/16/_/36190/_/971908878/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Something's weird with eGroups for me, since I got your post from 5pm and
didn't get the post from 4am until many hours later. :-(

In any case, you can definitely accomplish this. However, you will NOT be
able to use "more". The options must be assigned directly to the units.
Here is how to do it....

1. Create an option "bionarms" with cost X
2. Assign the "stat:xx+1" attribute to adjust the stat properly.
3. Assign the attribute "utyp:!individual" to ensure that the option won't
appear for individuals.
4. Attach the option to each unit that can have it, including both the
parent and child units. Use the "cost" link nature for the parent units and
"auto" for the child units.
5. Assign the attribute "only:bionarms-parent" to each child unit with the
option. This ensures that the option only appears if the parent unit has
the option.
6. Assign the attribute "mirr:bionarms" to each child unit with the option.
This ensures that the child will always have the same selection state as
the parent unit.

That should be all that's necessary. The net effect is that parent units
allow the option to be selected or not by the user. Child units will have
the option available only if the parent unit has it. If available, the
child unit will have the option selected or not exactly the same as the
parent unit. The reason that the parent unit can't use "more" to attach the
options is that the "only" and "mirr" attributes require that the option be
attached directly to the parent unit.

For examples of this technique, please look at the Clan War files. The way
that the "skirmish" option is implemented uses this exact same method.

Hope this helps,
Rob


At 04:46 AM 10/18/00 +0000, you wrote:
>If a unit has an option, say "Bionic Arms," which is bought at X
>points for each model in the unit, including specialists
>(type:support) and sergeants (type:leader), but not including special
>characters(type:individual), and adds 1 point to one of their stats..
>well, basically, how would I do it?
>
>I've done stat and whatever the command is to modify child stats(with
>a wildcard for type), which works fine, but the unit is only charged
>for models in the parent, effectively giving the upgrade to child
>models for free.
>
>How do I get the option to count child units when determining cost?
>I guess that's what my question boils down to. And I'm using "coun"
>on all my child units. Oh, but the option is given to the parent via
>a "more" attribute.. Just thought of that now, I'll have to try
>without it...
>
>Any help would be appreciated! Thanks!
>
>-Jaster


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (650) 726-9689
Lone Wolf Development www.wolflair.com

-------------------------- eGroups Sponsor -------------------------~-~>
Get FREE long-distance phone calls on Tellme!
Dial 1-800-555-TELL, say "Phone Booth"
http://click.egroups.com/1/9816/16/_/36190/_/971944538/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Back
Top