- Joined
- May 15, 2009
- Messages
- 192
Hello everyone! requesting aid again.
I'm making a boss fight that involves a steady stream of reinforcements coming to the boss. And I'm facing two problems, one for each type of reinforcements.
The first type is naga-myrmidons, this time simply called "vanguard". These Vanguards are sitting submerged in a pool near the boss, the the region called boss2_reinforcements. What the trigger is supposed to do is, pick one of the initial 20 Vanguards, order that one to un-submerge and then do an attack move to the boss's position - But nothing really happens, I made a game-text to check that the units were properly added to the group, which they are. But no unsubmerging takes place.
Secondly, some random Murloc spawn aswell, these work fine - except that once they've reached the boss's position (provided they don't find any targets) they just head back to their spawn area and sit around, any way to work around this?
I'm making a boss fight that involves a steady stream of reinforcements coming to the boss. And I'm facing two problems, one for each type of reinforcements.
The first type is naga-myrmidons, this time simply called "vanguard". These Vanguards are sitting submerged in a pool near the boss, the the region called boss2_reinforcements. What the trigger is supposed to do is, pick one of the initial 20 Vanguards, order that one to un-submerge and then do an attack move to the boss's position - But nothing really happens, I made a game-text to check that the units were properly added to the group, which they are. But no unsubmerging takes place.
-
Vanguard Reinforcements
-
Events
- Time - Every 12.00 seconds of game time
- Conditions
-
Actions
- Set Tempp1 = (Position of BossUnit[2])
- Set UnitType[1] = Submerged Vanguard
-
Unit Group - Pick every unit in (Units in Boss2 Reinforcements <gen> matching (((Unit-type of (Matching unit)) Equal to UnitType[1]) and (((Matching unit) is alive) Equal to True))) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to Tempug
-
Loop - Actions
- Set TempU1 = (Random unit from Tempug)
- Game - Display to (All players) the text: (String((Number of units in Tempug)))
- Custom script: call IssueImmediateOrder(udg_TempU1, "unsubmerge" )
- Wait 1.00 seconds
- Unit - Order TempU1 to Attack-Move To Tempp1
- Custom script: call DestroyGroup(udg_Tempug)
- Custom script: call RemoveLocation(udg_Tempp1)
- Custom script: call RemoveLocation(udg_Tempp2)
-
Events
Secondly, some random Murloc spawn aswell, these work fine - except that once they've reached the boss's position (provided they don't find any targets) they just head back to their spawn area and sit around, any way to work around this?