View Single Post
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old August 14th, 2014, 09:32 AM
Quote:
Originally Posted by Paragon View Post
[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.

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #32 Reply With Quote