OK, I'm trying to do things to just people who do not have a gasmask on. ***In fire.sqs I have it so it should run effect.sqs for each person in the trigger. ***I'm pretty sure that works. ***The problem seems to be with effects.sqs. ***No one in my squad has a gas mask, and it doesn't injure or allowfleeing 1 or set the skill level lower for anyone in my squad. ***I believe the weapon name is correct too, since I only cough when I don't have a gasmask. ***There are no errors that show up ingame.

part of fire.sqs
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#close
;Units Immediately Effected


~random 2

? &#40;player distance spot2&#60;=50 AND not&#40;player hasweapon &#34;edc_gasmask&#34;&#41;&#41;&#58;cutText &#91;&#34;&#34;, &#34;black faded&#34;,random 0.3&#93; AND player say &#34;chokekio&#34;;

;&#34;_x setdammage&#40;damage _x+random 0.2&#41;&#34; foreach List small;
;&#34;_x allowfleeing 1&#34; foreach List small;
;&#34;_x setskill &#40;skill _x&#41;/10&#34; foreach List small;

effects=&#34;effects.sqs&#34;;
&#34;&#91;_x&#93; exec effects&#34; foreach List small;
;&#34;?&#40;not&#40;_x hasweapon &#39;edc_gasmask&#39;&#41;&#41;&#58;_x allowfleeing 1&#34; foreach List small;
;&#34;?&#40;not&#40;_x hasweapon &#39;edc_gasmask&#39;&#41;&#41;&#58;_x setskill &#40;skill _x/10&#41;&#34; foreach List small;

;? _end &#62;= 30&#58;goto &#34;medi&#34;;

_end=_end+1;

goto &#34;close&#34;
[/QUOTE]


all of effects.sqs
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
_unit=_this select 0

if&#40;not&#40;_unit hasweapon &#34;edc_gasmask&#34;&#41;&#41;then{_unit setdammage&#40;damage _x+random 0.2&#41;;hint

&#34;SetDammage&#34;};
if&#40;not&#40;_unit hasweapon &#34;edc_gasmask&#34;&#41;&#41;then{_unit allowfleeing 1;hint &#34;Allow Fleeing&#34;};
if&#40;not&#40;_unit hasweapon &#34;edc_gasmask&#34;&#41;&#41;then{_unit setskill &#40;&#40;skill_unit&#41;/10&#41;;hint &#34;SetSkill&#34;};



[/QUOTE]