17. Okt 2017, 00:05 Hallo Gast.
Willkommen Gast. Bitte einloggen oder registrieren. Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge


Select Boards:
 
Language:
 

News:



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

Offline H4lbarad

  • Pförtner von Bree
  • *
  • Beiträge: 84
Hi everyone!

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_AngmarBasicTrain ing'


and

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

(the Angmar update is a random update a chose)

but it did not work :(

Can you help me please? :)

Online FG15

  • Administrator
  • Bezwinger der Toten
  • *****
  • Beiträge: 3.891
Re: Make scripts who are active only when we play against AI
« Antwort #1 am: 15. Aug 2016, 11:02 »
I'm always using this script:

*** IF ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_EasyAIMultiPlaye r'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_EasyAISinglePlay er'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_MediumAIMultiPla yer'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_MediumAISinglePl ayer'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_HardAIMultiPlaye r'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_HardAISinglePlay er'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_BrutalAIMultiPla yer'
  *** OR ***
     Does Player '<This Player>' have  1  units that has upgrade Upgrade 'Upgrade_BrutalAISinglePl ayer'
*** THEN ***
  Enable Script 'AI Build Sripts'.

Offline H4lbarad

  • Pförtner von Bree
  • *
  • Beiträge: 84
Re: Make scripts who are active only when we play against AI
« Antwort #2 am: 15. Aug 2016, 11:15 »
Yeah thank you very very much  :) :)