Jump to content


Photo

Buildings - OCL & AI

structures ai ocl

  • Please log in to reply
5 replies to this topic

#1 Parmenidesdeelea

Parmenidesdeelea
  • Members
  • 11 posts

Posted 14 April 2015 - 09:14 PM

Hi guys, I need guidance on:
If I want the "AI" take out to "Tom Bombadil" (for example) from a structure when enemy units approach the structure.
What I have to do ?????????????????????
I have done this under my control and I can summon, but when the AI controls the building no summons.
thank you very much


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 15 April 2015 - 08:08 AM

What exactly are you trying to do?

And maybe post some code of your structure :p

Do you want the structure to use a spell to summon a defensive unit or what?


Ridder Geel

#3 Parmenidesdeelea

Parmenidesdeelea
  • Members
  • 11 posts

Posted 15 April 2015 - 12:17 PM

Hi............Yes..... I want the structure to use a spell to summon a defensive unit......but not how to make "AI" do



#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 16 April 2015 - 08:00 AM

I believe aragorn has a summon spell for an army of the dead, look in his INI file, there might be information on how to get an AI to trigger a spell/ability.


Ridder Geel

#5 Parmenidesdeelea

Parmenidesdeelea
  • Members
  • 11 posts

Posted 16 April 2015 - 03:14 PM

Ok, I will try with that power; but would be valid also try to "FortressFunctions" generating some code so that the "summon" is activated in the presence of the enemy that is at a close distance.
If possible you know anything about that ?. I was reading a tutorial on 3rd Age ("In-depth AI Coding - Part 7) but not how to do it in this case.
 
Behavior = AIUpdateInterface ModuleTag_AI
      AILuaEventsList = FortressFunctions
      AutoAcquireEnemiesWhenIdle = Yes
      MoodAttackCheckRate = 250
End
 
Thank you very much for your concern


#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 17 April 2015 - 09:23 AM

Hm... well this would involve LUA scripts, so you would have to look at that :p

Should be in the scripts folder instead of the usual ini folder (in data) ;)


Ridder Geel




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users