Numenor awaits, with new armies, units, factions and heroes; witness the darkest Age of Middle-earth |
Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Proper Fire Arrow… Creating an asset.… Simple Structure B… Making a simple Ma… Quick and easy sno… Making patrols nea… Mods The Dwarf Holds The Peloponnesian… RJ - RotWK The Elven Alliance… Helm's Deep Last H… The Elven Alliance Special Extended E… Kings of the West… RC Mod The Wars of Arda Downloads BFME1 1.06 Widescr… Enhanced W3D Impor… Fudge's Map Pack LotR/BfME HD Logos Osgiliath Shellmap Crystals Of Ancien… 2v1 Wold The forests of Dru… Converted BFME2 an… ROTWK animations f… |
|||||||||||||||||||||||||||||||
Register and log in to move these advertisements down In-depth AI Coding
B2. Straightforward uses of the AI-Upgrade. Here are a few examples of how to use 'Upgrade_ObjectUnderAIControl' to give YOU more control over what the AI does and doesn't do: FortressBuildPlots. If you know how to modify the Fortress base files (explained elsewhere in a tutorial by ROBNKARLA but picked up again by me in a later chapter of this tutorial) you can do what i did. Make almost identical but disparate FortressPlots. This is useful if you are fed up with the random way the AI has when it comes to choosing an expansion type. The standard FortressBuildPlot for the ElvenFortress is called 'ElvenFortressExpansionPadCorner'. I made some ChildObjects and put those in the spots that i found appropriate. The names are pretty descriptive i guess.
And these are their CommandSets, which are ONLY used by the AI!
This way, the AI builds exactly what you want it to build on exactly the Plot you choose. For the HUMAN-Player, the different plots are all equal because it always uses the commandset 'CommandSet = ElvenFortressExpansionPadCornerCommandSet' for players without the upgrade 'Upgrade_ObjectUnderAIControl'. Here is another example: Tired of having AI controlled heroes run around on foot all the time? So, you want a hero to mount his horse when his mounting SpecialPower is finally available at say level 3? Plug this in:
You will need a second CommandSet with a differently named DISMOUNT-Button, so he doesn't accidentally dismount. Read on if you want to make this last thing a bit more elaborate than that! ------------------------------------------------------------------------------------------------------------------------------------------------------------------- CommentsDisplay order: Newest first | Page: 1, 2 Prolong - Thursday July 29, 2010 - 9:21 Very nice guide, even though it never got finished there is still a ton of great information here. Elrond99 - Sunday February 15, 2009 - 7:52 Thanks for updating the Tutorial Sulherokhh (Team Chamber Member) - Saturday February 14, 2009 - 21:19 After 'D. The Faction Base and Fortress', i guess. jakonic - Saturday February 14, 2009 - 12:05 when will be finished Spell Purchase Scripts???please answer Sulherokhh (Team Chamber Member) - Thursday November 29, 2007 - 17:26 I sure will... Rob38 (Team Chamber Member) - Thursday November 29, 2007 - 11:00 This is by far one of my favorite tutorials on T3A! Please continue to add more :) Sulherokhh (Team Chamber Member) - Wednesday October 3, 2007 - 23:07 I am glad you can put it to use, Rob! Your feedback means a lot to me. :D Rob38 (Team Chamber Member) - Wednesday October 3, 2007 - 22:27 Amazing! I also found a way to recognize if a player is controlled by the AI, but this looks to be a much easier method to use. Thank you for all your wonderful knowledge as there is some really cool stuff in here. Sulherokhh (Team Chamber Member) - Wednesday October 3, 2007 - 19:18 I'll split it up. Let's see what would be a good way. - Edit: Done. I hope you like it. Crashdoc - Wednesday October 3, 2007 - 16:48 Nice findings and interesting ways to use them. Thanks for sharing the knowledge! |
|||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |