• 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

Bug in stat and base? [WAS any way to mirror stats?]

  • Thread starter Thread starter angstboy at earthlink.net
  • Start date Start date
A

angstboy at earthlink.net

Guest
--- In armybuilder@egroups.com, "Russell Sparkes" <rjs@i...> wrote:
> --- In armybuilder@egroups.com, angstboy@e... wrote:
> >
> > Okay, I have done this, it worked, thanks. ;)
> >
> > Now, one more question, is there a way to clean it up so there's
no
> > slash?

> At the moment you need two stats, one you modify using your
options,
> the other you have as a derived stat (via the definition file.
> For example: Stat1 is hidden and it's the stat you do your stuffing
> with, then you have another stat, Stat, that is not hidden and is
> defined to be equal to Stat1.
>
> I don't think I explained that very well, look back through the
> archives for this egroup, Rob has explained it much better before.

I think I got you, but when I tried it it didn't work. When you use
the base:stat=(expr) format (same for the stat function), the
attribute uses the fixed stat value, not the derived value. (NOt
even the modified value, BTW, I tried it in reverse and I get even
funkier repsonses)

thus, I have a stat "holdq" that is equal to &qty, I have an
option, "set child stats" that is "chld:qty=(qty)" to set the
adjusted stat value to the parent's stat value. So far so good. I
create a child unit, the parent qty is 8, the starting child qty is
4, as soon as the child is created its qty is 4/8. so far so good.
I'm even showing my holdq stat, which is listed as 8. so far so
good. Finally, I have an option "clean stats" that is "base:qty=
(holdq)" on the child unit. When it goes into effect, the child's
stat becomes 0. (the assigned starting point in ABCreator). I've
tried changing the priorities, I've tried changing the syntax
(chld:holdq=(qty) + base:qty=(holdq) without the holdq stat being
derived) nothing works. I've tried finding that explanation you
mentioned, but I can't find it.

help?

John


-------------------------- eGroups Sponsor -------------------------~-~>
eGroups eLerts
It's Easy. It's Fun. Best of All, it's Free!
http://click.egroups.com/1/9698/1/_/36190/_/975335820/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
The issue here is sequencing. The "chld" attribute must be applied AFTER
the appropriate stat has been modified. However, it must also be applied
BEFORE the child unit is attached to the parent. So, at a minimum, you will
have at least 3 options involved, and each must be assigned to a different
category to control the priority. For example:

1. Define three option categories in the following order:
- adjuststats
- childsetup
- attachchild
2. Create the option to adjust the parent unit's stats and assign it to
category "adjuststats"
3. Create the option to setup the child unit's stats and assign it to
category "childsetup". This is the option that uses the "chld" attribute.
4. Create the option to attach the child unit to the parent and assign it
to category "attachchild". This is the option that uses "unit" to attach
the child.

The overall evaluation sequence of the above will then be that the parent's
stats are adjusted, followed by the "chld" attribute caching its changes
for application to subsequently attached children, followed by the children
being attached and having their stats adjusted.

Hope this helps,
Rob


At 02:36 PM 11/27/00 +0000, you wrote:
>I think I got you, but when I tried it it didn't work. When you use
>the base:stat=(expr) format (same for the stat function), the
>attribute uses the fixed stat value, not the derived value. (NOt
>even the modified value, BTW, I tried it in reverse and I get even
>funkier repsonses)
>
>thus, I have a stat "holdq" that is equal to &qty, I have an
>option, "set child stats" that is "chld:qty=(qty)" to set the
>adjusted stat value to the parent's stat value. So far so good. I
>create a child unit, the parent qty is 8, the starting child qty is
>4, as soon as the child is created its qty is 4/8. so far so good.
>I'm even showing my holdq stat, which is listed as 8. so far so
>good. Finally, I have an option "clean stats" that is "base:qty=
>(holdq)" on the child unit. When it goes into effect, the child's
>stat becomes 0. (the assigned starting point in ABCreator). I've
>tried changing the priorities, I've tried changing the syntax
>(chld:holdq=(qty) + base:qty=(holdq) without the holdq stat being
>derived) nothing works. I've tried finding that explanation you
>mentioned, but I can't find it.
>
>help?
>
>John


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

-------------------------- eGroups Sponsor -------------------------~-~>
eGroups eLerts
It's Easy. It's Fun. Best of All, it's Free!
http://click.egroups.com/1/9698/1/_/36190/_/975359971/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Back
Top