Quote:
Originally Posted by Paragon
[snip]Yeah. I noticed that, as written, there'd be no way to apply it to the by-the-book laser pistol because its just lumped into futuristic energy weapons and not broken out as, say, "energy pistol".
|
You can change it just a tad to pick up the other era pistols (or other things) as well with something like:
Code:
foreach pick in hero from WeapRange
if (eachpick.tagis[WeaponType.ModPistol] | eachpick.tagis[WeaponType.FutPistol] <> 0) then
eachpick.field[wpDmgBonus].value += 2
endif
nexteach
I think that's right anyway, although I could be off a little on my syntax here. At any rate that | is an OR function, so if the pick is ModPistor OR FutPistol it will still pick it.
Quote:
Given the above limitations, do you actually think its useful to post there? Its a little more--specific--than most of the code chunks I saw in that thread, and as you note, actually has some more heavy lifting to work right.
|
You never know who might find it useful or when so sure, post it in. You figured out how to do it, after all.
Besides, that code could be used to do something to any kind of equipment in that same vein as long as folks are aware of how things are grouped in the setting they are using.