Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Creating an asset.… Proper Fire Arrow… 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 Modboy451's Article of Code-SnippetsTutorial for ROTWK
You can use the docommandupgrade to do a neat trick with toggle weapons. When a Hero/CAH/Unit Is built you can have him start with as he has just toggled weapon! This is what the CAH Archer class uses so it starts with a Bow out instead of a sword...
what this Code is saying is that if if you are using the CAH class archer: we want you to put the toggle button on the commandset if its not already there and do the toggle once and then take it of the commandset, unless it was already there. (the character starts with a sword so if you removed the code createahero.ini he/she would start with a sword instead) BUT......................... If you were using this on say...faramir then it might look like this
(MUST put Upgrade_StartWithSword in the Proper Experience Level and define it in upgrade.ini, it dosent have to be Upgrade_StartWithSword it can be anything you want) Basically This Code is Saying that when he is built he will automatcally toggle weapon once. You still With Me??? Now... say you took the toggleweapon command off of faramir's commandset but you wanted to have him start with a sword (starts with bow by default) you would need to add this line in the docommandupgrade behavior:
so it would look like this:
you could also just put the toggle weapon in the commandset assinged to a button number that is 7+ EX:
if you did it like this you would not need the line:
That's it for toggle weapon! the next page is shorter Next Up: Triggering Powers ------------------------------------------------------------------------------------------------- Here im going to show you how you can use the "triggered by feature in the docommandupgrade beahvior to automatically have the hero use his power Im going to use Aragorn Use his Blade master ability once he reaches Level 7 First: Put this in aragorn.ini
Second: Put this in Upgrade.ini
Third and Finally: GO to experiencelevels.ini and find this code:
and add:
Above:
it will look something like this:
now i will go through what each file does... experiencelevels.ini code:
tell the game that when aragorn reaches level 7 give him this upgrade: aragorn.ini code
the TriggeredBy line tells that when this unit will do the GetUpgradeCommandButtonName when aragorn receives the upgrade "Upgrade_UseBladeMaster" Upgrade.ini code
defines the upgrade referenced in experiencelevels.ini and in aragorn.ini ------------------------------------------------------------------------------------------------- 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
/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ this will automatically give the unit this upgrade when they are built
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 Credits
CommentsDisplay order: Newest first modboy451 - Monday November 14, 2011 - 17:41 ^_^ removed. Prolong - Sunday May 1, 2011 - 5:56 Nice tips for intermediate coders. :-) You should remove the empty last page of the guide! Radspakr Wolfbane (Team Chamber Member) - Monday February 14, 2011 - 18:49 The majority of all this is only for BFME2/ROTWK. modboy451 - Monday February 14, 2011 - 9:21 an article on spell books may be coming soon! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |