View Single Post
PhilAdams
Junior Member
 
Join Date: Apr 2007
Posts: 23

Old December 28th, 2014, 02:45 PM
So, I'm missing something. I built out a test Edge. Shooting Specialization, UniqID edgIZShoSp. This is the code in the Eval Scripts:

if (hero.tagis[Edge.edgIZShoSp] = 0) then
foreach pick in hero from WeapRange
if (eachpick.tagis[WeaponType.ModPistol] <> 0) then
eachpick.field[wpBonus].value -= 2
endif
nexteach
endif


The skill shows up as the default (that's fine). When I buy a modern pistol, it applies a -2. A flintlock doesn't. If I change the code to:

if (eachpick.tagis[WeaponType.ModPistol] = 0) then
eachpick.field[wpBonus].value -= 2
endif

It works fine. That seems backwards. 0 is the "true" logic. What am I missing?
PhilAdams is offline   #29 Reply With Quote