Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline AdrianeMapMaker  
#1 Posted : Friday, July 5, 2019 9:12:08 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
How to make ai dont sell their captured faction buildings

Just 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)



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=240

How 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.com
Discord - AdrianeYves#2285

ZH Worldbuilder Community Discord - https://discord.gg/tJ6zyGb

Edited by user Sunday, July 7, 2019 6:35:37 AM(UTC)  | Reason: Not specified

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Sponsor
Offline thepredatorbg  
#2 Posted : Saturday, July 6, 2019 12:01:51 PM(UTC)
thepredatorbg
Private
Joined: 6/20/2017(UTC)
Posts: 17
Bulgaria

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
You can also do this:
Code:
Object AmericaCommandCenter
KindOf = -FS_FACTORY
End
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.