Hello, i'm having a problem binding 2 units together. When 2 units enter a circle, its supposed to come out a different unit. In my case, i'm using a horse and a footman, when the 2 enter the region, it spawn a knight. It works pretty nicely, but the problem is that if i put 2 horses, then a footman, it will spawn 2 knights =/. Heres my trigger
Trigger:
- Knight
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set Fusion = (Units in FusionGroup <gen> matching ((Unit-type of (Matching unit)) Equal to Footman))
- Unit Group - Pick every unit in Fusion and do (Actions)
- Loop - Actions
- Set Footman = (Picked unit)
- Set Fusion = (Units in FusionGroup <gen> matching ((Unit-type of (Matching unit)) Equal to Riderless Horse))
- Unit Group - Pick every unit in Fusion and do (Actions)
- Loop - Actions
- Set Horse = (Picked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Footman Not equal to No unit
- Horse Not equal to No unit
- (Number of units in (Units in FusionGroup <gen>)) Equal to 2
- Then - Actions
- Unit - Remove Footman from the game
- Unit - Remove Horse from the game
- Unit - Create 1 Knight for (Owner of (Picked unit)) at (Center of FusionGroup <gen>) facing Default building facing degrees
- Else - Actions
- If - Conditions
- Loop - Actions
- Loop - Actions
- Custom script: call DestroyGroup(udg_Fusion)
- Events