Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago
Well I've came across a map which had too many subroutine scripts used.
For e.g if you click on edit teams & edit it's template look into "Behavior" tab you see these options.

1. On Create
2. On Enemy Sighted
3. On All Clear
4. On Idle

I was thinking to use them with Demo Jarmen Kell & Colonel Burton for e.g.

I've created this subroutine scrip for "HUNT"

***IF***
True
***THEN***
This Team Starts Hunting

& for Demo Charges

***IF***
Team 1 has one or more units
Team 2 has one or more units
Team 3 has one or more units
Team 4 has one or more units
***THEN***
This team starts hunting using ability DemoJaremnKellTimedDemoCharge
This team starts hunting using ability ColonelBurtonTimedDemoCharge



If Jarmen Kell spots a vehicle it kills its pilot & when he sigths a building, he plants Time Demo Charge the same thing is with Burton.

***IF***
Team 1 has one or more units
Team 2 has one or more units
Team 3 has one or more units
Team 4 has one or more units
***THEN***
This Team Starts Hunting using ability JaremnKellKillPilot



I tried the subroutine scripts like this

1. On Create = Use Hunt Script
2. On Enemy Sighted = Use JaremnKellKillPilot Scipt
3. On Idle = Use DemoCharge Script

but the team when reinforced do nothing but standing ducks.

But I'm not good with subroutine scripts so where am I worng?
Sponsor
Drummin
16 years ago
Just on a hunch try making the condition true for all cases.
***IF***
True
***THEN***

When naming other teams you could be tying the script to the other teams and so '' is unclear.
Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago
I tried it with condition TRUE also but nothing changed & the 'THIS TEAM' was an example, I've used different names for the teams when used the subroutines.

In that (Full Art Of Defense v12) map when Jarmen Kell sights an enemy vehicle it kills it pilot & when an infantry is spotted he snipes them & when he's near any building or idle he plants timedemocharge, same is with burton also.

Still I'm stuck at that point.
Drummin
16 years ago
Well then I would check out how the scripting is setup on that map as it sounds like exactly what you're looking for.
Looking at the setup on the map Full Art Of Defense v12, it seems he's using different teams to perform these different attacks.
Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago
Well Drummin did you check that map?
Drummin
16 years ago
Yes did you see my last post? Looks like each team has one action. I would pull the "Burton" out of your demo script and try that.