This works:
if (tagcount[tyTags.AddIn] > 0) then
basestat[In] = stat[In] + 1
endif
-----
This generates an error:
if (tagcount[tyTags.Rippers] > 0) & (tagcount[tyTags.AddIn] > 0) then
basestat[In] = stat[In] + 2
endif
-----
This doesn't error out, but it also does nothing.
if (tagcount[tyTags.AddIn] > 0) then
basestat[In] = stat[In] + 1
if (tagcount[tyTags.Rippers] > 0)then
basestat[In] = stat[In] + 1
endif
endif
How do I check if a unit has two tags before doing an operation on it!?!?!?!
________________________________________________________________
Sent via the WebMail system at lokilaw.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Meet the McDonald¿s® Lincoln Fry get free digital souvenirs,
Web-only video and bid on the Lincoln Fry prop charity auction.
http://us.click.yahoo.com/UScA5C/fV0JAA/5xWGAA/IMSolB/TM
--------------------------------------------------------------------~->
if (tagcount[tyTags.AddIn] > 0) then
basestat[In] = stat[In] + 1
endif
-----
This generates an error:
if (tagcount[tyTags.Rippers] > 0) & (tagcount[tyTags.AddIn] > 0) then
basestat[In] = stat[In] + 2
endif
-----
This doesn't error out, but it also does nothing.
if (tagcount[tyTags.AddIn] > 0) then
basestat[In] = stat[In] + 1
if (tagcount[tyTags.Rippers] > 0)then
basestat[In] = stat[In] + 1
endif
endif
How do I check if a unit has two tags before doing an operation on it!?!?!?!
________________________________________________________________
Sent via the WebMail system at lokilaw.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Meet the McDonald¿s® Lincoln Fry get free digital souvenirs,
Web-only video and bid on the Lincoln Fry prop charity auction.
http://us.click.yahoo.com/UScA5C/fV0JAA/5xWGAA/IMSolB/TM
--------------------------------------------------------------------~->