[General] AI stops working after some time

Status
Not open for further replies.
Level 4
Joined
Jan 17, 2015
Messages
40
So I created a small custom campaign based on Blizzard map. I'ts about night elves summoning cenarius. Before the summoning everything works fine, AI produces units, attacks but when the summoning and cinematic ends AI just retreats back to base and stands there. When their units are killed, they won't produce new ones. Can someone help, please?
 

Attachments

  • Cenarion Circle.w3x
    497.9 KB · Views: 40
Level 12
Joined
Jun 15, 2016
Messages
472
The problem is probably Cenarius's birth trigger. In the last line you tell the map to run the melee ai script over an already running ai.

  • timerexpires
    • Events
      • Time - AwakeningTimer expires
    • Conditions
    • Actions
      • Trigger - Turn off animation <gen>
      • Wait 2.00 seconds
      • Quest - Display to (All players) the Quest Completed message: |cffffcc00MAIN QUES...
      • Quest - Mark Awakening as Completed
      • Wait 3.00 seconds
      • Cinematic - Turn cinematic mode On for (All players)
      • Wait 2.00 seconds
      • Unit - Change ownership of Cenarius 0260 <gen> to Player 1 (Red) and Change color
      • Unit - Move Sentinel General 0272 <gen> instantly to (Center of shandrissummoncinem <gen>), facing (Position of Cenarius 0260 <gen>)
      • Unit - Move Warden Leader 0267 <gen> instantly to (Center of deathstrikesummoncinem <gen>), facing (Position of Cenarius 0260 <gen>)
      • Camera - Apply circle of power <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Fade in over 2.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Wait 2.00 seconds
      • Unit - Unpause Fendrake the Healer 0056 <gen>
      • Cinematic - Send transmission to (All players) from Fendrake the Healer 0056 <gen> named Fendrake the Healer: Play No sound and display Well, my work here .... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 2.00 seconds
      • Unit - Order Fendrake the Healer 0056 <gen> to Human Paladin - Activate Divine Shield
      • Wait 2.00 seconds
      • Unit - Remove Fendrake the Healer 0056 <gen> from the game
      • Wait 2.00 seconds
      • Unit - Move Cenarius 0260 <gen> instantly to (Center of cenarius <gen>)
      • Unit - Unhide Cenarius 0260 <gen>
      • Unit - Unpause Cenarius 0260 <gen>
      • Animation - Play Cenarius 0260 <gen>'s birth animation
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play No sound and display Long have I been in.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 10.00 seconds
      • Cinematic - Send transmission to (All players) from Warden Leader 0267 <gen> named Deathstrike: Play No sound and display Pardon, Shan'do but.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 5.00 seconds
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play No sound and display What's wrong?. Modify duration: Add 0.00 seconds and Don't wait
      • Wait 2.00 seconds
      • Cinematic - Send transmission to (All players) from Warden Leader 0267 <gen> named Deathstrike: Play No sound and display The orcs and undead.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 7.00 seconds
      • Cinematic - Send transmission to (All players) from Warden Leader 0267 <gen> named Deathstrike: Play No sound and display We could face them .... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 10.00 seconds
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play No sound and display They will pay dearl.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 5.00 seconds
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play O05Cenarius03 <gen> and display Let battle be joine.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 3.30 seconds
      • Cinematic - Turn cinematic mode Off for (All players)
      • Unit - Unpause all units
      • Quest - Mark Destroyenemies as Discovered
      • Quest - Enable Destroyenemies
      • Quest - Display to (All players) the Quest Discovered message: |cffffcc00MAIN QUES...
      • Unit - Unpause Barrow Den 0268 <gen>
      • Melee Game - Run melee AI scripts (for computer players)
 
Level 4
Joined
Jan 17, 2015
Messages
40
The problem is probably Cenarius's birth trigger. In the last line you tell the map to run the melee ai script over an already running ai.

  • timerexpires
    • Events
      • Time - AwakeningTimer expires
    • Conditions
    • Actions
      • Trigger - Turn off animation <gen>
      • Wait 2.00 seconds
      • Quest - Display to (All players) the Quest Completed message: |cffffcc00MAIN QUES...
      • Quest - Mark Awakening as Completed
      • Wait 3.00 seconds
      • Cinematic - Turn cinematic mode On for (All players)
      • Wait 2.00 seconds
      • Unit - Change ownership of Cenarius 0260 <gen> to Player 1 (Red) and Change color
      • Unit - Move Sentinel General 0272 <gen> instantly to (Center of shandrissummoncinem <gen>), facing (Position of Cenarius 0260 <gen>)
      • Unit - Move Warden Leader 0267 <gen> instantly to (Center of deathstrikesummoncinem <gen>), facing (Position of Cenarius 0260 <gen>)
      • Camera - Apply circle of power <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Fade in over 2.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Wait 2.00 seconds
      • Unit - Unpause Fendrake the Healer 0056 <gen>
      • Cinematic - Send transmission to (All players) from Fendrake the Healer 0056 <gen> named Fendrake the Healer: Play No sound and display Well, my work here .... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 2.00 seconds
      • Unit - Order Fendrake the Healer 0056 <gen> to Human Paladin - Activate Divine Shield
      • Wait 2.00 seconds
      • Unit - Remove Fendrake the Healer 0056 <gen> from the game
      • Wait 2.00 seconds
      • Unit - Move Cenarius 0260 <gen> instantly to (Center of cenarius <gen>)
      • Unit - Unhide Cenarius 0260 <gen>
      • Unit - Unpause Cenarius 0260 <gen>
      • Animation - Play Cenarius 0260 <gen>'s birth animation
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play No sound and display Long have I been in.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 10.00 seconds
      • Cinematic - Send transmission to (All players) from Warden Leader 0267 <gen> named Deathstrike: Play No sound and display Pardon, Shan'do but.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 5.00 seconds
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play No sound and display What's wrong?. Modify duration: Add 0.00 seconds and Don't wait
      • Wait 2.00 seconds
      • Cinematic - Send transmission to (All players) from Warden Leader 0267 <gen> named Deathstrike: Play No sound and display The orcs and undead.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 7.00 seconds
      • Cinematic - Send transmission to (All players) from Warden Leader 0267 <gen> named Deathstrike: Play No sound and display We could face them .... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 10.00 seconds
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play No sound and display They will pay dearl.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 5.00 seconds
      • Cinematic - Send transmission to (All players) from Cenarius 0260 <gen> named Cenarius: Play O05Cenarius03 <gen> and display Let battle be joine.... Modify duration: Add 0.00 seconds and Don't wait
      • Wait 3.30 seconds
      • Cinematic - Turn cinematic mode Off for (All players)
      • Unit - Unpause all units
      • Quest - Mark Destroyenemies as Discovered
      • Quest - Enable Destroyenemies
      • Quest - Display to (All players) the Quest Discovered message: |cffffcc00MAIN QUES...
      • Unit - Unpause Barrow Den 0268 <gen>
      • Melee Game - Run melee AI scripts (for computer players)
Nay, I figured that out. It seems that the trigged action "Unpause all units" was the problem as there was no trigger before that would pause them. But thanks anyways! :0
 
Status
Not open for further replies.
Top