View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 7th, 2012, 12:55 PM
This is why I like indenting if statements - it lets you see how they flow.

This is what you have:

Code:
 
if (hero.tagcount[Hero.EquipWep] = 2) then
  if (tagis[Hero.EquipMain] <> 0) then
    if (tagis[Hero.EquipOff] <> 0) then
      field[BonEnhance].value = 5
      endif
    endif
  endif
Is that the set of tests you want to use? See how it flows - making the next test only if the previous one is passed?
Mathias is online now   #17 Reply With Quote