This trigger makes all units that currently cost population change the amount they cost to an amount of your choice. Remember that you cannot make a unit cost less than 1 population but it is still good. This means that you can now build 300 units that normally cost population which is very useful.
The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
<Effect name="Make all pop costing units # pop">
<Param name="p1" dispName="lowest player" varType="player">1</Param>
<Param name="p2" dispName="highest player" varType="player">4</Param>
<Param name="pop" dispName="amount" varType="long">1</Param>
<Command>trQuestVarSet("PlayerID", %p1%);</Command>
<Command>while(%p2%>=trQuestVarGet("PlayerID")) {</Command>
<Command>trQuestVarSet("ModProtoRandomQV", 0);</Command>
<Command>while(999>=trQuestVarGet("ModProtoRandomQV")) {</Command>
<Command>trQuestVarSet("moo",kbGetPopSlots(1*trQuestVarGet("playerID"), trQuestVarGet("ModProtoRandomQV")));</Command>
<Command>if(1*trQuestVarGet("moo") > 0)trModifyProtounit(""+kbGetProtoUnitName(trQuestVarGet("ModProtoRandomQV")), 1*trQuestVarGet("playerID"), 6, -1*trQuestVarGet("moo")+%pop%);</Command>
<Command>trQuestVarSet("ModProtoRandomQV", trQuestVarGet("ModProtoRandomQV")+1);}</Command>
<Command>trQuestVarSet("PlayerID", trQuestVarGet("PlayerID")+1);}</Command>
</Effect>
This is alot better than using modfiy all because it makes everything that doesn't normally cost pop cost pop which can be annoying!Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
[This message has been edited by nottud (edited 09-22-2007 @ 02:08 PM).]