0
0
==
PointZero
0
trGetStatValue(%PlayerID%, %StatID%) %Op% trQuestVarGet("%QVName%")+ %Value%
1
2
kbGetPlayerTeam(%PlayerID%) == kbGetPlayerTeam(%PlayerID2%)
EAGLEMUT
for(x=0;>=9){}
for(i=8;>=9){
if(""+kbGetPlayerName(i)=="%Name%"){ x=x+1;}}
x==1
0
==
1
for(result=kbGetAgeForPlayer(%PlayerID%);>5){}
result %Op% %age%
1
Unit
==
10
for(all=1800;>-1){ if (kbGetUnitTypeName(all)=="%UnitType%") break;}
xsSetContextPlayer(%PlayerID%);
kbLookAtAllUnitsOnMap();
for(unitQueryID=kbUnitQueryCreate("get%PlayerID%i%result%");>5000){}
kbUnitQuerySetPlayerID(unitQueryID,%PlayerID%);
kbUnitQuerySetUnitType(unitQueryID, all);
kbUnitQuerySetState(unitQueryID,4);//Means Dead
kbUnitQueryResetResults(unitQueryID);
for(result=kbUnitQueryExecute(unitQueryID);>=50000){}
result-trGetStatValue(%PlayerID%,6) %Op% %result%
1
Unit
==
PointZero
0
for(all=1800;>-1){ if (kbGetUnitTypeName(all)=="%UnitType%") break;}
xsSetContextPlayer(%PlayerID%);
kbLookAtAllUnitsOnMap();
for(unitQueryID=kbUnitQueryCreate("get%PlayerID%i%result%");>5000){}
kbUnitQuerySetPlayerID(unitQueryID,%PlayerID%);
kbUnitQuerySetUnitType(unitQueryID, all);
kbUnitQuerySetState(unitQueryID,4);//Means Dead
kbUnitQueryResetResults(unitQueryID);
for(result=kbUnitQueryExecute(unitQueryID);>=50000){}
result-trGetStatValue(%PlayerID%,6) %Op% trQuestVarGet("%QVName%")+ %Value%
default
==
1
for(count=0;>1){}
for(pla=cNumberPlayers-1;>=0){count = count + trPlayerUnitCountSpecific(pla, "%ProtoUnit%");}
count %Op% %Count%
1
2
default
==
1
for(count=0;>1){}
for(pla=%PlayerID2%;>=%PlayerID%){count = count + trPlayerUnitCountSpecific(pla, "%ProtoUnit%");}
count %Op% %Count%
==
1
for(count=0;>1){}
for(pla=cNumberPlayers-1;>=0){count = count + trPlayerUnitCount(pla);}
count %Op% %Count%
1
2
==
1
for(count=0;>1){}
for(pla=%PlayerID2%;>=%PlayerID%){count = count + trPlayerUnitCount(pla);}
count %Op% %Count%
food
==
1
for(count=0;>1){}
for(pla=cNumberPlayers-1;>=0){count = count + trPlayerResourceCount(pla, "%Resource%");}
count %Op% %Count%
1
2
food
==
1
for(count=0;>1){}
for(pla=%PlayerID2%;>=%PlayerID%){count = count + trPlayerResourceCount(pla, "%Resource%");}
count %Op% %Count%
1
kbIsPlayerHuman(%PlayerID%)
==
1
for(count=0;>1){}
for(p=cNumberPlayers-1;>=0){
if (kbIsPlayerHuman(p) == false) count = count + 1; }
count %Op% %Count%
1
default
QV1
default
trChatSend(%PlayerID%, "%Message1%" + " " + trQuestVarGet("%QVName%") + " " + "%Message2%");
1
default
1
0
default
trChatSend(%PlayerID1%, "%Message1%" + " " + trGetStatValue(%PlayerID2%, %StatID%) + " " + "%Message2%");
Name
Unit
0
10s
1
for(all=1600;>=-1){ if (kbGetUnitTypeName(all)=="%UnitType%") break;}
xsSetContextPlayer(%Player%);
kbLookAtAllUnitsOnMap();
for(Qid=kbUnitQueryCreate("QDUA_%Player%_%UnitType%");>=99999){}
kbUnitQuerySetPlayerID(Qid, %Player%, true);
kbUnitQuerySetUnitType(Qid, all);
kbUnitQuerySetPosition(Qid, vector(%DstPoint%));
kbUnitQuerySetMaximumDistance(Qid, %Radius%);
kbUnitQuerySetAscendingSort(Qid, true);
kbUnitQuerySetState(Qid, 2);
for(i=kbUnitQueryExecute(Qid);>=0){
trUnitSelectClear();
trUnitSelectByID(kbUnitQueryGetResult(Qid, i));
trUnitChangeName("%NewName%");}
1
0
1
for(i=%TTR%;>0){
trTechSetStatus(%PlayerID%, %TechID%, 2);}
1
food
100
trPlayerGrantResources(%PlayerID%, "%ResName%", trQuestVarGet("%Amount%"));
1
Unit
Default
for(all=1800;>-1){ if (kbGetUnitTypeName(all)=="%UnitType%") break;}
xsSetContextPlayer(%PlayerID%);
kbLookAtAllUnitsOnMap();
for(unitQueryID=kbUnitQueryCreate("get%PlayerID%i%result%");>5000){}
kbUnitQuerySetPlayerID(unitQueryID,%PlayerID%);
kbUnitQuerySetUnitType(unitQueryID, all);
kbUnitQuerySetState(unitQueryID,4);//Means Dead
kbUnitQueryResetResults(unitQueryID);
for(result=kbUnitQueryExecute(unitQueryID);>=50000){}
trQuestVarSet("%QVName%", result-trGetStatValue(%PlayerID%,6));
0
0
Name
trQuestVarSet("%QVName%", trGetStatValue(%PlayerID%, %StatID%));
0
Name
for(count=0;>1){}
for(pla=cNumberPlayers-1;>=0){count = count +trGetStatValue(pla, %StatID%);}
trQuestVarSet("%QVName%", count);
0
0
1.0
for(i=1800;>-1)
trModifyProtounit(""+kbGetProtoUnitName(i), %PlayerID%, %Field%, %Delta%);
default
100
trUnitSelectClear();
trUnitSelect("%ProtoUnit%");
for(p=cNumberPlayers-1;>=0) {
if(trUnitIsOwnedBy(p)) break;}
xsSetContextPlayer(p);
trQuestVarSet("lolololo",kbUnitGetMaximumHitpoints(kbGetBlockID(""+1*%ProtoUnit%)));
trQuestVarSet("lolololo",(trQuestVarGet("lolololo")/100) * %Percent%);
trModifyProtounit(""+kbGetUnitTypeName(kbGetUnitBaseTypeID(kbGetBlockID(""+1*%ProtoUnit%))), p, 0, trQuestVarGet("lolololo"));
1
default
100
trUnitSelectClear();
trUnitSelect("%ProtoUnit%");
for(p=cNumberPlayers-1;>=0) {
if(trUnitIsOwnedBy(p)) break;}
xsSetContextPlayer(p);
trQuestVarSet("lolololo",kbUnitGetMaximumHitpoints(kbGetBlockID(""+1*%ProtoUnit%)));
trQuestVarSet("lolololo",(trQuestVarGet("lolololo")/100) * %Percent%);
trModifyProtounit(""+kbGetUnitTypeName(kbGetUnitBaseTypeID(kbGetBlockID(""+1*%ProtoUnit%))), p, 0, trQuestVarGet("lolololo"));
trModifyProtounit(""+kbGetUnitTypeName(kbGetUnitBaseTypeID(kbGetBlockID(""+1*%ProtoUnit%))), %PlayerID%, 0, trQuestVarGet("lolololo"));
default
100
trUnitSelectClear();
trUnitSelect("%ProtoUnit%");
for(p=cNumberPlayers-1;>=0) {
if(trUnitIsOwnedBy(p)) break;}
xsSetContextPlayer(p);
trQuestVarSet("lolololo",kbUnitGetMaximumHitpoints(kbGetBlockID(""+1*%ProtoUnit%)));
trQuestVarSet("lolololo",(trQuestVarGet("lolololo")/100) * %Percent%);
for(i=1800;>-1)
trModifyProtounit(""+kbGetProtoUnitName(i), p, 0, trQuestVarGet("lolololo"));
1
100
trUnitSelectClear();
trUnitSelect("%ProtoUnit%");
for(p=cNumberPlayers-1;>=0) {
if(trUnitIsOwnedBy(p)) break;}
xsSetContextPlayer(p);
trQuestVarSet("lolololo",kbUnitGetMaximumHitpoints(kbGetBlockID(""+1*%ProtoUnit%)));
trQuestVarSet("lolololo",%result%-trQuestVarGet("lolololo"));
trModifyProtounit(""+kbGetUnitTypeName(kbGetUnitBaseTypeID(kbGetBlockID(""+1*%ProtoUnit%))), p, 0, trQuestVarGet("lolololo"));
QV1
1
default
xsSetContextPlayer(%Player%);
trQuestVarSet("%QV1%",kbUnitGetMaximumHitpoints(kbGetBlockID(""+1*%SrcObject%)));
default
I have
HP.
trUnitSelectClear();
trUnitSelect("%SrcObject%");
trUnitChangeName("%Before%"+kbUnitGetMaximumHitpoints(kbGetBlockID(""+1*%SrcObject%))+"%After%");
default
1
trUnitSelectClear();
trUnitSelect("%SrcObject%");
trUnitChangeName("%Before% "+kbGetPlayerName(%PlayerID%)+" %After%");
food
100
for(p=cNumberPlayers-1;>=0)
trPlayerGrantResources(p, "%ResName%", %Amount%);
1
2
food
100
for(p=%PlayerID2%;>=%PlayerID%)
trPlayerGrantResources(p, "%ResName%", %Amount%);
for(p=cNumberPlayers-1;>=0){
if (kbIsPlayerHuman(p) == false) trSetPlayerDefeated(p); }
Villager
1
2
0
1.0
for(p=%PlayerID2%;>=%PlayerID%)
trModifyProtounit("%ProtoUnit%", p, %Field%, %Delta%);
1
2
1.0
0,0,0
true
for(p=%PlayerID2%;>=%PlayerID%)
trMinimapFlare(p, %Duration%, vector(%Position%), %Flash%);
1.0
for(expGained=0;>1){}
for(pla=cNumberPlayers-1;>=0){
if(trQuestVarGet("datax_xpgoldcounter"+pla) == 0){
trQuestVarSet("datax_xpgoldcounter"+pla, trPlayerResourceCount(pla, "XP"));}
expGained = (trPlayerResourceCount(pla, "XP") - trQuestVarGet("datax_xpgoldcounter"+pla) - (2 * (trTime()-cActivationTime)));
trPlayerGrantResources(pla, "Gold", (expGained * %Multiplier%));
trQuestVarSet("datax_xpgoldcounter"+pla, trPlayerResourceCount(pla, "XP"));}
countdown
30
0
1
The End is Near
0
trCounterAddTime("%Name%", %Start%, %Stop%, kbGetPlayerName(%PlayerID%)+" %Msg%", %Event%);