|
|
River_God
Member
Offline
Posts: 184
|
|
« Reply #62 on: September 29, 2007, 05:47:18 PM » |
|
OK I am working on my Victory trigger, but I am a little stuck on some variables for the condition.
rmAddTriggerCondition("Units in Area"); rmSetTriggerConditionParam("Player", playaT2); rmSetTriggerConditionParam("UnitType", "cow"); rmSetTriggerConditionParamInt("Count", 2);
<Condition name="Units in Area"> <Param name="DstObject" dispName="$$22300$$Center Unit" VarType="unit">default</Param> <Param name="Player" dispName="$$22301$$Player" VarType="player">1</Param> <Param name="UnitType" dispName="$$22302$$Unit Type" VarType="unittype">Unit</Param> <Param name="Dist" dispName="$$22303$$Radius" VarType="float">10</Param> <Param name="Op" dispName="$$22297$$Operator" VarType="operator">==</Param> <Param name="Count" dispName="$$22304$$Count" VarType="float">1</Param> <Expression>trCountUnitsInArea("%DstObject%",%Player%,"%UnitType%",%Dist%) %Op% %Count%</Expression> </Condition>
ok, the DstObject?!? dunno what that is. and "Op"?!? what is the operator? and is the "UnitType" just the name of the protounit or something bigger?
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|
|
|
|
|
|
|
River_God
Member
Offline
Posts: 184
|
|
« Reply #70 on: October 08, 2007, 04:55:12 PM » |
|
Well, I am not sure why this isn't working:
for (playaT2=1; <=cNumberNonGaiaPlayers){ rmAddTriggerCondition("Units in Area"); rmSetTriggerConditionParamInt("DstObject", towncenterID); rmSetTriggerConditionParamInt("Player", playaT2); rmSetTriggerConditionParam("UnitType", "cow"); rmSetTriggerConditionParamInt("Dist", 20); rmSetTriggerConditionParam("Op", "<"); rmSetTriggerConditionParamInt("Count", 2); } rmAddTriggerEffect("Counter:Add Timer"); rmSetTriggerEffectParam("Name", "FlagsCaptured"); rmSetTriggerEffectParamInt("Start", 300); rmSetTriggerEffectParamInt("Stop", 0); rmSetTriggerEffectParam("Msg", "SOMEONE HAS THE FLAGS"); rmAddTriggerEffect("Flare Minimap"); rmSetTriggerEffectParam("Position", "0.5,1,0.5"); rmSetTriggerPriority(4); rmSetTriggerActive(true); rmSetTriggerLoop(false);
I added a flare minimap to make sure it worked but it did not flare when I had 2 cows at my towncenter
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|
|
|
|