The 3rd Age

The 4th Age

The 4th Age

Sets the game into year 220 of the 4th Age, where you play as either Gondor, Rohan, Rhûn or Harad.

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

The Power of the DoCommandUpgrade Behavior

Avatar of modboy451

modboy451

Category: Code
Level: Beginner
Created: Tuesday December 14, 2010 - 11:57
Updated: Thursday November 3, 2016 - 17:53
Views: 5840
Summary: A neat behavior that is will show you

Rating

Staff says

3.0

Members say

-

Average

3.0/5.0

1 vote

Page 1 2 3 4
ADDED 1/7/2011

Here I'm going to show you how to make someone come with an upgrade when they are built but with some cool twists

              
Code

Behavior = DoCommandUpgrade ModuleTag_UseSwordInitially
GetUpgradeCommandButtonName = Upgrade_IsengardForgedBlades
End

/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
this will automatically give the unit this upgrade when they are built

              
Code

Behavior = DoCommandUpgrade ModuleTag_ForgedBlades
TriggeredBy = Upgrade_HardAIMultiPlayer
GetUpgradeCommandButtonName = Upgrade_IsengardForgedBlades
End


the line i added here is the upgrade the AI gets when it is set to hard difficulty...
so if you add this to the isengard fighter and the computer to hard and as faction isengard when they build isengard fighters they will come with forged blades


Note:

I have not tested this personally, Nevertheless it should work...
I hope you enjoyed this article...PLEASE LET ME KNOW IF YOU FIND ANY MORE USES FOR THE DOCOMMANDUPGRADE BEHAVIOR SO I CAN LIST THEM!!!

Modboy451

Comments

Display order: Newest first

modboy451 - Thursday December 16, 2010 - 8:31

Yes, im sure there are other uses

clank234 - Thursday December 16, 2010 - 5:39

so this teaches you how to use a power straight away without cicking it???

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
15:51:13