The 3rd Age

Age Of Men

Age Of Men

Age of Men will be some like an unofficial expansion set for BFME2:ROTWK

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

Converting a normal power into a CaH power

Avatar of Solinx

Solinx

Category: Code
Level: Intermediate
Created: Saturday March 24, 2007 - 18:17
Updated: Saturday June 27, 2009 - 18:57
Views: 10401
Summary: This guide will step by step show you how to convert a normal power into a CaH power

Rating

Staff says

3.7

Members say

4.4

Average

4.1/5.0

8 votes

Page 1 2 3 4 5 6 7 8
--- Important ---

First off, I'll tell you that not all powers will be as easy to port as the example I am going to use.

The following two power types are tougher to convert:

- Weapon toggle
- Special weapons/attacks

Sadly these two include many abilities. It is quite likely possible to convert the weapontoggle, but I'm not entirely sure if the second is possible (without removing other abilities that is). When I know more, this guide will be updated.

Stealth is also a bit different, but that one requires only a small addition and will be covered in this guide.


--- Assumptions ---

I've assumed that you...
...have read the beginner tutorials, which explain the basics of modding.
...have some knowledge about how normal powers work. (Useful, but not really required if you follow the steps.)
...know how to change strings on buttons.


--- Requirements: ---

Ok, now you know that, let's start with the guide. As I said, I'm keeping this simple. We will start by converting the 'Outlaw Leadership' of Eomer into a level 1 'Men of the West' CaH power.
After we've done that, we'll change it into a 3rd level power, that can only be selected after getting the standard level 1 CaH leadership.

The files you need to copy code from are:

...\data\ini\commandbutton.ini
...\data\ini\specialpower.ini
...\data\ini\object\goodfaction\units\men\eomer.ini

You will need to add code to:

...\data\ini\commandbutton.ini
...\data\ini\object\createahero\createaheropowers.inc
...\data\ini\createaherospecialpowers.ini
...\data\ini\createaheroupgrades.inc
...\data\ini\attributemodifier.ini

Optional, in case of a stealth power:

...\data\ini\object\createahero\createahero.ini

Weapon toggles and special powers/attacks require some additional coding in other files. Perhaps I will make an advanced guide on them when I know more about them.


Next page: The First Step

Credits

CahikFinding the Disguise power exception

Comments

Display order: Newest first

imreszabo2018 - Monday November 7, 2022 - 12:22

Nice tutorial.
Can you help me in something? I am new in the site and I want to create a new ability for create a hero archers. It would be a passive ability that increases the range and attack speed of the bow. I noticed that I can do it in weapon.ini and I tried creating a new weapon based on the CreateAHeroBasicRangedWeapon. As soon as the hero gets this new ability in game I want to update this CreateAHeroBasicRangedWeapon to my new weapon object . Is this even possible? Tried it in createaheroweaponupgrades.inc but the program don't really accept anything

Berethomb - Thursday November 24, 2011 - 21:15

Help! I can't paste anything into createheropowers.inc! What shall I do?

King Komodo3 - Sunday February 13, 2011 - 13:28

I need some help with my project, I'm making a goblin create a hero, I have him in the Servant of sauron area and I need to add Mount/Dismount Scorpion & Toggle Weapon. If you could help me that would be great (I have a forum file in the BFME2/RTWK section the goblin one talking about adding the Goblin Fiend)

lilkaka - Friday October 16, 2009 - 11:24

Thanks for the guide. But do you know how to convert the special power of Mount/Dismount into the power of Elven CaH Archer?

Elaryan - Thursday January 15, 2009 - 8:54

m...i'll do it with the balrog's fire whip!

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."

 
20:37:33