Modding Union
[en] - Modding Corner => Mapping => Thema gestartet von: H4lbarad am 15. Aug 2016, 10:59
-
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? :)
-
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'.
-
Yeah thank you very very much :) :)