Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago
Well I'm currently stuck in the scripting of an AOD map.

I want the A.I. to fire it's special powers to random players & on random buildings on what A.I. wants to fire.

So far I've used the code pasted below to through Way point but this is just annoying to make lots of way points, is there any other way that A.I. would fire it's special powers or super weapons at random positions to random buildings?


*** IF ***
Player '' is ready to fire Special power 'Nuke_SuperweaponNeutronMissile'.
*** THEN ***
Unit 'Nuke Silo' fires Special power 'Nuke_SuperweaponNeutronMissile' at Waypoint 'Reinforce 1'.



Also If one of my Ally has a Hospital & Tech Repair Bay, will my units & other Ally units also heal & repair or not?
Sponsor
Drummin
16 years ago
Use the "Player" use special power script instead of the one for a named unit.
*** IF ***
Player '' is ready to fire Special power 'Nuke_SuperweaponNeutronMissile'.
*** THEN ***
Player '' fire Special power 'Nuke_SuperweaponNeutronMissile'
Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago

Use the "Player" use special power script instead of the one for a named unit.
*** IF ***
Player '' is ready to fire Special power 'Nuke_SuperweaponNeutronMissile'.
*** THEN ***
Player '' fire Special power 'Nuke_SuperweaponNeutronMissile'




I also tried using "Player" script but A.I. is still firing it's special powers or super weapons at only one player the A.I. chooses from the start, for e.g if it fires an A-10Thuderbolt to player 2 it will fire all it's special powers & super weapons on the same player.

Need help 😄
Annihilationzh
16 years ago
I don't think it's possible.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago
Well I tried what Drummin told me to do but nothing changed, once A.I. selects it's desired player to fire special power it will only fire only on one player.

Need further help
Drummin
16 years ago
You'll see that most authors script SW attacks at waypoints for AOD maps. I'm sure you could setup a random timer to work for firing at different locations making it less predictable.
Aafat
  • Aafat
  • 89% (Honored)
  • Private Topic Starter
16 years ago
Could you please name any AOD map that has such script or any example will be good.
Drummin
16 years ago
I made a sample set of scripts. This has not been tested. SW Unit and waypoint names will need to be changed for your map and it only has four fire locations and you could have many more. Unzip the file and import it to your GLA folder. Hope it works for you.   SuperAttackSample.zip (1kb) downloaded 11 time(s).