Autor
Thema: Make scripts who are active only when we play against AI (Gelesen 406 mal)

I'm searching for a few time how we must do for making scripts who are activated only if we play against AI (and not against a human player).

I tried to make a folder checked "unactive" with all my scripts I want to be active only if we play against AI, and I made a script which actives that folder. I tried different solutions, like the script:

*** IF *** True.*** THEN *** Have AI Player 'Player_2' build this upgrade: Upgrade 'Upgrade_AngmarBasicTraining'

and

*** IF *** Player Player 'Player_2' built Upgrade 'Upgrade_AngmarBasicTraining'.*** THEN *** Enable Script 'Player_2/scripts only ai p2'.

*** IF *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_EasyAIMultiPlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_EasyAISinglePlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_MediumAIMultiPlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_MediumAISinglePlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_HardAIMultiPlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_HardAISinglePlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_BrutalAIMultiPlayer' *** OR *** Does Player '<This Player>' have 1 units that has upgrade Upgrade 'Upgrade_BrutalAISinglePlayer'*** THEN *** Enable Script 'AI Build Sripts'.