So I am very close to achieving BFME1 style in ROTWK or BFME2
I am able to get the AI to hunt for Econ Plots and Build Farms
I am able to get the Castle startup , and AI build varied Buildings on the plots
I am able to get the AI to hunt for Outposts Plots and Build the Outposts ( this has 3 Buildplots)
I cannot get the AI to build on these plots , they only build the Outpost but no additional buildings
The script below works up to the line to create a building
It is in Skirmish Men folder
So below works fine , the Base is unpacked , but the line to build a farm etc does not work
PS : strange as this may seem , I sometimes get farms built on BASE_FLAG_8 only , only farm , never another building , never another Base_Flag
I hate scripting , it does not follow set logic
Its not a money issue , as my buildings cost $5 resources
*** IF *** Unit 'BASE_FLAG_8' is unpackable for the player: Player 'Player_2'. *AND* Unit 'BASE_FLAG_8' has Less Than threat level 5.00 within radius 250.00 *** THEN *** Player '<This Player>' gets $ 200 Unpack the base: Unit 'BASE_FLAG_8'and reference it as UnitRef 'AI_BASE_8'. Unit 'AI_BASE_8' is transferred to the command of Player 'Player_2' Build building 'GondorBarracks' in base Unit 'AI_BASE_8' and reference it as UnitRef 'BARRACKS' . *** IF *** Unit 'BASE_FLAG_7' is unpackable for the player: Player 'Player_2'. *AND* Unit 'BASE_FLAG_7' has Less Than threat level 5.00 within radius 250.00 *** THEN *** Player '<This Player>' gets $ 200 Unpack the base: Unit 'BASE_FLAG_7'and reference it as UnitRef 'AI_BASE_7'. Unit 'AI_BASE_7' is transferred to the command of Player 'Player_2' Build building 'GondorBarracks' in base Unit 'AI_BASE_7' and reference it as UnitRef 'BARRACKS' . *** IF *** Unit 'BASE_FLAG_10' is unpackable for the player: Player 'Player_2'. *AND* Unit 'BASE_FLAG_10' has Less Than threat level 5.00 within radius 250.00 *** THEN *** Player '<This Player>' gets $ 200 Unpack the base: Unit 'BASE_FLAG_10'and reference it as UnitRef 'AI_BASE_10'. Unit 'AI_BASE_10' is transferred to the command of Player 'Player_2' Build building 'GondorFarm' in base Unit 'AI_BASE_10' and reference it as UnitRef 'house1' . Build building 'GondorBattleTower' in base Unit 'AI_BASE_10' and reference it as UnitRef 'TOWER' .
Edited by JUS_SAURON, 16 June 2020 - 04:17 AM.