|
|
|
|
|
|
|
|
|
|
|
pftq
Administrator
Offline
Posts: 4204
|
|
« Reply #71 on: July 09, 2008, 08:47:14 PM » |
|
|
|
|
Logged
|
|
|
|
MosheLevi
Member
Offline
Posts: 28
|
|
« Reply #72 on: July 10, 2008, 11:30:52 AM » |
|
Yes, I looked at the screen shots, I was just not sure if I need to type "All" to see all the ID?s.
I was able to find the "Military" ID by leaving the name empty. I had to go through all of them, lol. I finally found it, it is 1479 ID.
Thank you for your help, the ID Viewer is a great effect.
I am currently working on the most creative scenario I have ever made. I don?t think I can top that one, so maybe I should retire after that, lol.
By the way, do you have TAD expansion?
|
|
|
Logged
|
|
|
|
|
Random22
Member
Offline
Posts: 33
|
|
« Reply #74 on: July 11, 2008, 11:18:28 AM » |
|
Hi pftq, I've modded the point triggers and I am wondering if this is right, <Effect name="Kill/Delete All Units in Area (Point)"> <Param name="Object" dispName="Center Unit" varType="Area">0.0,0.0,0.0</Param> <Param name="Dst" dispName="Radius" varType="string">10.0</Param> <Param name="UnitId" dispName="Unit Type ID (Optional)" varType="string">-1</Param> <Param name="FromPlayer" dispName="From Player or 99 for ALL" varType="string">99</Param> <Param name="Flash" dispName="Kill:No Delete:Yes" varType="bool">false</Param> <Command>trQuestVarSet("convarea", 0);</Command> <Command>trQuestVarSet("ffweho",0);</Command> <Command>if(%FromPlayer%!=99) trQuestVarSet("vroom", %FromPlayer%);</Command> <Command>trQuestVarSet("warthog", 0);</Command> <Command>trQuestVarSet("zeep", 0);</Command> <Command>if(%UnitId%>=0) {</Command> <Command>trQuestVarSet("zeep", %UnitId%);</Command> <Command>}</Command> <Command>if(0>%UnitId%) {</Command> <Command>while(kbGetUnitTypeName(trQuestVarGet("zeep"))!="All") {</Command> <Command>trQuestVarSet("zeep", trQuestVarGet("zeep")+1);</Command> <Command>}}</Command> <Command>trQuestVarSet("lastpl", xsGetContextPlayer());</Command> <Command>xsSetContextPlayer(0);</Command> <Command>kbLookAtAllUnitsOnMap();</Command> <Command>if(%FromPlayer%!=99) trQuestVarSet("blarg",%FromPlayer%);</Command> <Command>if(%FromPlayer%==99) {</Command> <Command>trQuestVarSet("blarg",0);</Command> <Command>trQuestVarSet("vroom",12);</Command> <Command>}</Command> <Command>trQuestVarSet("i",trQuestVarGet("blarg"));</Command> <Command>while(trQuestVarGet("vroom")>=trQuestVarGet("i")) {</Command> <Command>trQuestVarSet("convarea", kbUnitQueryCreate("convarea"));</Command> <Command>kbUnitQuerySetPlayerID(trQuestVarGet("convarea"), trQuestVarGet("i"));</Command> <Command>kbUnitQuerySetUnitType(trQuestVarGet("convarea"), trQuestVarGet("zeep"));</Command> <Command>kbUnitQuerySetPosition(trQuestVarGet("convarea"), vector(%Object%));</Command> <Command>kbUnitQuerySetMaximumDistance(trQuestVarGet("convarea"), %Dst%);</Command> <Command>kbUnitQuerySetAscendingSort(trQuestVarGet("convarea"), true);</Command> <Command>kbUnitQueryResetResults(trQuestVarGet("convarea"));</Command> <Command>trQuestVarSet("warthog", kbUnitQueryExecute(trQuestVarGet("convarea")));</Command> <Command>while(trQuestVarGet("warthog")>0) {</Command> <Command>trQuestVarSet("warthog", trQuestVarGet("warthog")-1);</Command> <Command>trQuestVarSet("ffweho", kbUnitQueryGetResult(trQuestVarGet("convarea"), trQuestVarGet("warthog")));</Command> <Command>trUnitSelectClear();</Command> <Command>trUnitSelectByID(trQuestVarGet("ffweho"));</Command> <Command>trUnitDelete(%Flash%);</Command> <Command>}</Command> <Command>trQuestVarSet("i", trQuestVarGet("i")+1);}</Command> <Command>xsSetContextPlayer(trQuestVarGet("lastpl"));</Command> </Effect> Would that be right?
|
|
|
Logged
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thats Right More Random22 Signature
|
|
|