Well - I have not posted a trick for a while but here is a mega cool one you can do with the attach trigger. By attaching units to shrunk hawks or even just normal ones, it is possible to make randomly roaming flying units!
Beware! - the passage transport of doom is heading your way!
So - the flying dutchman DOES exist now does it?
Weeeeeeee!
Anyway - you the trigger given below to deploy a unit and attach it to another unit of your choice. The above trick is made by attaching other units to hawks.
The required trigger is below:
Beware! - the passage transport of doom is heading your way!
So - the flying dutchman DOES exist now does it?
Weeeeeeee!
Anyway - you the trigger given below to deploy a unit and attach it to another unit of your choice. The above trick is made by attaching other units to hawks.
The required trigger is below:
<Effect name="Attach unit">
<Param name="a" dispName="Notes" varType="string">Uses relics and a hero of your choice. You need to choose an unused unit to change existing relics to. Chosen hero cannot be used on the map</Param>
<Param name="b" dispName="Notes2" varType="string">Attached units stay alive if the other unit dies!</Param>
<Param name="inv" dispName="invisible unused unit" varType="protounit">Iceberg</Param>
<Param name="Location" dispName="" varType="area">0,0,0</Param>
<Param name="Hero" dispName="Hero" varType="protounit">Villager</Param>
<Param name="ProtoName" dispName="$$22434$$ProtoName" varType="protounit">Villager</Param>
<Param name="SrcObject" dispName="$$22295$$Source Units" VarType="unit">default</Param>
<Command>for(i = 0; > 1){}</Command>
<Command>unitTransform("relic","%inv%");</Command>
<Command>i = kbGetUnitBaseTypeID(kbGetBlockID("%SrcObject%"));</Command>
<Command>unitTransform(""+kbGetProtoUnitName(i),"%Hero%");</Command>
<Command>trArmyDispatch("0,1","relic",1,%Location%,0,true);</Command>
<Command>trArmySelect("0,1");</Command>
<Command>trBlockAllSounds(true);</Command>
<Command>trImmediateUnitGarrison("%SrcObject%");</Command>
<Command>trUnblockAllSounds();</Command>
<Command>unitTransform("relic","%ProtoName%");</Command>
<Command>unitTransform("%Hero%",""+kbGetProtoUnitName(i));</Command>
<Command>unitTransform("%inv%","relic");</Command>
</Effect>
Have fun!