Jump to content
Sign in to follow this  
TK3600

How to make AI build repair station? How to make AI capture machine shop?

Recommended Posts

http://www.moddb.com/mods/artificial-brutality

This mods allows repair station construction and nuclear plant construction. I tried to do the same by using TibEd and set "AIBuildThis=yes" for those buildings, but it didn't work. What can I do? I don't want parts of the mod so I am making my own.

As for making Soviet and Allied capture machine shop and hospital, I tried to make my own Trigger and Teamtype, and the game won't load.

----

166=TeamSovietCaptureMachine
167=TeamSovietCaptureHospital
168=TeamAlliedCaptureMachine
169=TeamAlliedCaptureHospital

----

[TeamSovietCaptureMachine]
Name=Soviet Capture Machine
VeteranLevel=1
MindControlDecision=0
Loadable=no
Full=no
Annoyance=no
GuardSlower=no
House=<none>
Recruiter=no
Autocreate=yes
Prebuild=no
Reinforce=no
Droppod=no
UseTransportOrigin=no
Whiner=no
LooseRecruit=no
Aggressive=no
Suicide=no
Priority=5
Max=1
TechLevel=0
Group=-1
OnTransOnly=no
AvoidThreats=yes
IonImmune=no
TransportsReturnOnUnload=no
AreTeamMembersRecruitable=yes
IsBaseDefense=no
OnlyTargetHouseEnemy=no
Script=08B972DC-G
TaskForce=0A31360C-G

[TeamSovietCaptureHospital]
Name=Soviet Capture Hospital
VeteranLevel=1
MindControlDecision=0
Loadable=no
Full=no
Annoyance=no
GuardSlower=no
House=<none>
Recruiter=no
Autocreate=yes
Prebuild=no
Reinforce=no
Droppod=no
UseTransportOrigin=no
Whiner=no
LooseRecruit=no
Aggressive=no
Suicide=no
Priority=5
Max=1
TechLevel=0
Group=-1
OnTransOnly=no
AvoidThreats=yes
IonImmune=no
TransportsReturnOnUnload=no
AreTeamMembersRecruitable=yes
IsBaseDefense=no
OnlyTargetHouseEnemy=no
Script=05FC30CC-G
TaskForce=0A31360C-G

[TeamAlliedCaptureMachine]
Name=Allied Capture Machine
VeteranLevel=1
MindControlDecision=0
Loadable=no
Full=no
Annoyance=no
GuardSlower=no
House=<none>
Recruiter=no
Autocreate=yes
Prebuild=no
Reinforce=no
Droppod=no
UseTransportOrigin=no
Whiner=no
LooseRecruit=no
Aggressive=no
Suicide=no
Priority=5
Max=1
TechLevel=0
Group=-1
OnTransOnly=no
AvoidThreats=yes
IonImmune=no
TransportsReturnOnUnload=no
AreTeamMembersRecruitable=yes
IsBaseDefense=no
OnlyTargetHouseEnemy=no
Script=08B972DC-G
TaskForce=0D0811AC-G

[TeamAlliedCaptureHospital]
Name=Allied Capture Hospital
VeteranLevel=1
MindControlDecision=0
Loadable=no
Full=no
Annoyance=no
GuardSlower=no
House=<none>
Recruiter=no
Autocreate=yes
Prebuild=no
Reinforce=no
Droppod=no
UseTransportOrigin=no
Whiner=no
LooseRecruit=no
Aggressive=no
Suicide=no
Priority=5
Max=1
TechLevel=0
Group=-1
OnTransOnly=no
AvoidThreats=yes
IonImmune=no
TransportsReturnOnUnload=no
AreTeamMembersRecruitable=yes
IsBaseDefense=no
OnlyTargetHouseEnemy=no
Script=05FC30CC-G
TaskForce=0D0811AC-G

----

TriggerSovietCaptureMachine=Soviet Capture Machine,TeamSovietCaptureMachine,<all>,1,7,CAMACH,0100000003000000000000000000000000000000000000000000000000000000,40.000000,10.000000,40.000000,1,0,2,0,<none>,0,1,1
TriggerAlliedCaptureMachine=Allied Capture Machine,TeamAlliedCaptureMachine,<all>,1,7,CAMACH,0100000003000000000000000000000000000000000000000000000000000000,40.000000,10.000000,40.000000,1,0,1,0,<none>,0,1,1
TriggerSovietCaptureHospital=Soviet Capture Hospital,TeamSovietCaptureHospital,<all>,1,7,CATHOSP,0100000003000000000000000000000000000000000000000000000000000000,40.000000,10.000000,40.000000,1,0,2,0,<none>,0,1,1
TriggerAlliedCaptureHospital=Allied Capture Hospital,TeamAlliedCaptureHospital,<all>,1,7,CATHOSP,0100000003000000000000000000000000000000000000000000000000000000,40.000000,10.000000,40.000000,1,0,1,0,<none>,0,1,1

The script used are the existing one for Yuri, and taskforce used are the existing respective engineer taskforce of each faction.

Edited by TK3600

Share this post


Link to post

Should just need to use AIBuildThis for the Service Depot and Nuclear Reactor. Try adding the Reactor to NodAdvancedPower. I think I had to do that to make it work.

Your triggers are referencing team 3, which is Yuri. They need to reference 1 and 2, which are Allies and Soviets, respectively.

Share this post


Link to post
3 hours ago, Doctor Destiny said:

Should just need to use AIBuildThis for the Service Depot and Nuclear Reactor. Try adding the Reactor to NodAdvancedPower. I think I had to do that to make it work.

Your triggers are referencing team 3, which is Yuri. They need to reference 1 and 2, which are Allies and Soviets, respectively.

I figured out first one, CNC net version does not allow these editing even offline. What should I change to reference team 1 and 2?

Share this post


Link to post
On 9/20/2017 at 9:37 PM, Doctor Destiny said:

Should just need to use AIBuildThis for the Service Depot and Nuclear Reactor. Try adding the Reactor to NodAdvancedPower. I think I had to do that to make it work.

Your triggers are referencing team 3, which is Yuri. They need to reference 1 and 2, which are Allies and Soviets, respectively.

I have made the change, but it still did not load. I have changed the code accordingly above.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×