• 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

Option question

  • Thread starter Thread starter stevenjcox at cableinet.c
  • Start date Start date
S

stevenjcox at cableinet.c

Guest
I'm working on my first files, so forgive me if this seems simple to
you.

Unit A can take two pieces of equipment. Item 1 is a weapon, where
item 2 is a shield. Item 2 gives a stat increase and a non-roster
related bonus. If Item 1 and 2 are used together, Item 2 no longer
gives the stat increase.

How can I represent this?

Steve


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get your FREE credit report with a FREE CreditCheck
Monitoring Service trial
http://us.click.yahoo.com/Gi0tnD/bQ8CAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
This one is simple in concept, but it has a nasty little flaw that forces
an alternate and more klunky solution.

The easy solution (in concept) is to have item1 assign a type to the unit
and have item2 use a tweak with the "zutp" attribute that is dependent on
the type assigned by item1. This tweak would subtract back out the bonus
assigned by item1, but only if the type indicated item1 was present. So
what's the flaw? Well, the user can select and/or re-sequence his items in
any way he wants. If item2 goes first in the list, then item1 hasn't been
processed, so AB thinks that item1 isn't attached to the unit (it isn't -
YET). This results in different behaviors when both items on attached to a
unit, depending on whether item1 is first or item2 is first.

Now for the proper solution. Since you need the stat increase to be
INdependent of the item sequencing, you MUST use an option for it. So, have
both item1 and item2 assign different types to the unit when selected (e.g.
"type1" and "type2". Then create an option that performs the stat increase.
Use "utyp" on the option so that the option is only valid when "type1" IS
present and "type2" is NOT present. Since the optoin can appear on any unit
that might select the items, the simplest answer is to assign the "glob"
attribute to the optoin and attach it to all units with the "auto"
behavior. This way, any unit that has either or both of the items assigned
automatically gets the appropriate stat increase behavior.

Hope this helps,
Rob


At 10:42 AM 10/19/2001 +0000, you wrote:
>I'm working on my first files, so forgive me if this seems simple to
>you.
>
>Unit A can take two pieces of equipment. Item 1 is a weapon, where
>item 2 is a shield. Item 2 gives a stat increase and a non-roster
>related bonus. If Item 1 and 2 are used together, Item 2 no longer
>gives the stat increase.
>
>How can I represent this?
>
>Steve


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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get your FREE credit report with a FREE CreditCheck
Monitoring Service trial
http://us.click.yahoo.com/Gi0tnD/bQ8CAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Back
Top