• 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

cost of unit based on a stat?

  • Thread starter Thread starter adam at realnice.com
  • Start date Start date
A

adam at realnice.com

Guest
I was looking through old posts before I posted this, and saw one or
two things that looked like my question, but I couldnt understand the
answer at all and am hoping that for my problem it might be simpler.
I have a unit that starts with ZERO of the stat "hp". It also starts
with zero cost. Items and options add to the stat. I want the cost of
the original unit to be something like (hp*10), or 10 cost per HP,
but it doesnt really work like that I guess. I want it to calc this
on the fly, so every time someone adds an item or removes one, it
recalculated the cost based on the new HP. thanks! ;) (hope THIS
wasnt too confusing! lol)


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
I think the easiest way for you to do this is to make a hidden option
called 'Calculate Cost' or something like that. You'll want two
attributes for it; "cost:expr=hp*10" and "hide", then assign the option
link to the unit as "incl".

Mark

--- Adam <adam@realnice.com> wrote:
> I was looking through old posts before I posted this, and saw one or
> two things that looked like my question, but I couldnt understand the
> answer at all and am hoping that for my problem it might be simpler.
> I have a unit that starts with ZERO of the stat "hp". It also starts
> with zero cost. Items and options add to the stat. I want the cost of
> the original unit to be something like (hp*10), or 10 cost per HP,
> but it doesnt really work like that I guess. I want it to calc this
> on the fly, so every time someone adds an item or removes one, it
> recalculated the cost based on the new HP. thanks! ;) (hope THIS
> wasnt too confusing! lol)
>
>
>
> To unsubscribe from this group, email
>
> armybuilder-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>


=====
Warhammer Club - Vancouver, BC
http://www.WCP-Vancouver.com

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
Set the initial value of the stat to zero. Then have options that use the
"stat" attribute to increment the stat value. Those same options can have
their cost be fixed (e.g. 10) and increment by 10 for each stat bonus
purchased. Or, you can have a separate option that calculates the cost
based on the accumulated total of the stat. This latter method requires
that the cost calculation be a lower priority (i.e. happen after) than the
stat adjustment options.

Hope this helps,
Rob

At 07:37 PM 5/11/2003 +0000, you wrote:
>I was looking through old posts before I posted this, and saw one or
>two things that looked like my question, but I couldnt understand the
>answer at all and am hoping that for my problem it might be simpler.
>I have a unit that starts with ZERO of the stat "hp". It also starts
>with zero cost. Items and options add to the stat. I want the cost of
>the original unit to be something like (hp*10), or 10 cost per HP,
>but it doesnt really work like that I guess. I want it to calc this
>on the fly, so every time someone adds an item or removes one, it
>recalculated the cost based on the new HP. thanks! ;) (hope THIS
>wasnt too confusing! lol)


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (559) 658-6995
Lone Wolf Development www.wolflair.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
Thanks man, I think that will work great! Much appreciated ;)


> I think the easiest way for you to do this is to make a hidden
option
> called 'Calculate Cost' or something like that. You'll want two
> attributes for it; "cost:expr=hp*10" and "hide", then assign the
option
> link to the unit as "incl".
>
> Mark


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
Back
Top