• 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

SR 5th ed. Custom ammo question

I'm trying to code a custom ammo type that delivers toxins. I have the ammo set to allow toxin selections, but am running into a problem with proper costing of the toxin.

The intended behavior is to charge for one toxin dose per 5 rounds of ammo, but I can't seem to figure out how to change it from one dose per round. This is of course adjustable once in play, but I'd like to get the automatic costing correct if possible.
 
Last edited:
I can't think of a way to recalculate costs like that that doesn't require adding code to the structural code - you'd need to get into the part of the code that assumes the user means for a stack of X items to all be identical (and therefore multiplies the cost of all modifications/toxins/etc. added to an item by the size of that stack) and modify it so that only every 5th item has that toxin.
 
Would it be easier to just divide the listed toxin costs by 5? Is the toxin cost accessible from the ammo's evaluation script?

Or is this feature request territory?
 
The scripts on an item can't get into the transaction scripts that control the price of an item when purchasing in advancement mode. In creation mode it can be done, since there, HL just totals up the value of all items bought during creation.

I'd handle this manually - buy 20 of this ammo, don't put any toxins in it, and then buy 4 of the toxin and leave it on the gear tab.
 
Back
Top