IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Constant Production, GAH!
Frostyarmy
post 18 Oct 2009, 17:30
Post #1


League is Life
Group Icon

Group: Tester
Posts: 748
Joined: 14 June 2009
From: America
Member No.: 153



For some reason my scripts arent working like they should

I had the AI build a team of commanches

And then after the team was built they where suppose to attack , but they just stand there and make more of them sad.gif somebody help

if this helps

1st script

**IF**
TRUE

THEN
AI build team 'Coptor'

2nd script

**IF**

Team 'coptor' is made


THEN

Team 'Coptors' Guard Area 'alphaguard'
Go to the top of the page
 
+Quote Post
Nip
post 19 Oct 2009, 0:35
Post #2


aka nipthecat
Group Icon

Group: Members
Posts: 14
Joined: 7 June 2009
From: Planet Nip
Member No.: 44



You can use subroutine scripts to build teams and let them guard an area. Try the attachment, the AI builds a Comanche on start (the AI takes some 30 sec., be patient). When build, the chopper guards the marked area. Whenever an enemy enters the area he will be attacked. The chopper responds when being attacked, when the Comanche is dead the AI builds a new one until money is spent. If you want you can set a delay between building teams.

The subroutine scripts must be linked with the team in the team builder.
1.Under 'Identity' > 'Production Condition' you must enter the build condition subroutine script and check 'Automatically reinforce whenever possible' under 'Recruitment Options'
2.Under 'Behavior' > 'Behavior Script Triggers' > 'On Create' enter the action subroutine script. The 'Inital Team Behavior' is set to 'Alert'.

Attached File  _TestComancheSpawn.zip ( 3.85K ) Number of downloads: 4


--------------------
It's ok for me to know that I could whenever I would
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 19 April 2024 - 12:39