How to make ai dont sell their captured faction buildingsJust
remove the buildings
FS_Type KindOfs using
map.ini[[INTRODUCTION:]For modders - you probably know or met FS_KindOfs
BTW These are the FS_Kindof i am talking about.(If you dont know them)
FS_STRATEGY_CENTER
FS_SUPPLY_CENTER
FS_BLACK_MARKET
FS_SUPERWEAPON
FS_SUPPLY_DROPZONE
FS_AIRFIELD
FS_WARFACTORY
FS_BARRACKS
FS_ADVANCED_TECH
FS_TECHNOLOGY
FS_BASE_DEFENSE
FS_FACTORY
FS_POWER
FS_INTERNET_CENTER
FS_FAKE
Note: Just a note - Removing FS_KINDOF has drawbacks - FS_KindOF are tied with sabotagers (removing fs_kind of to the buildings makes the sabotage ability doesnt work for em)
;---------------------
You can use the
finalbig program to see what specific FS_KINDOF are intact in a specific building
FinalBig Link =
http://www.cnclabs.com/d...oads/details.aspx?id=240How to use FinalBig:
FinalBig Usage Tutorial link =
http://www.cnclabs.com/f...-By-AdrianeMapMaker.aspx;---------------------
[[HOW TO DO IT:]1st. = Go to your map folder
2nd. = Make a text file there and named it map.ini
3rd. = The easy peasy coding part
[[CODING:]1st. Open map.ini.
2nd. Find the specific building that you wanted to be Immuned to ai-auto selling mechanic using finalbig
3rd. Find its kind of and copy it to our format ( See the example )
Heres the Code Format:
Object {Object Name}
KindOf = {Existing KindOf with No FS_KindOF}
End
Example:
;Original KindOF are intact in this one [(FS_FACTORY) IS existing in here - just remove it]
Code:Object AmericaCommandCenter
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE COMMANDCENTER SCORE CAPTURABLE FS_FACTORY AUTO_RALLYPOINT MP_COUNT_FOR_VICTORY
End
;the version with no FS_KindOf
Code:Object AmericaCommandCenter
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE COMMANDCENTER SCORE CAPTURABLE AUTO_RALLYPOINT MP_COUNT_FOR_VICTORY
End
Save and youre done
Contact :
Email -
agentyves06@gmail.comDiscord - AdrianeYves#2285
ZH Worldbuilder Community Discord -
https://discord.gg/tJ6zyGbEdited by user Sunday, July 7, 2019 6:35:37 AM(UTC)
| Reason: Not specified