The 3rd Age

Wars of the East

Wars of the East

A mod for RotWK that adds new factions, units, heroes, stuctures, powers and more.

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

Adding Summon Allies

Avatar of Hostile

Hostile

Category: Code
Level: Beginner
Created: Monday March 26, 2007 - 4:59
Updated: Saturday June 27, 2009 - 18:54
Views: 10436
Summary: Creating a new summon allies spell

Rating

Staff says

3.5

Members say

3.6

Average

3.5/5.0

13 votes

Page 1 2 3 4 5 6
I would suggest first we start with adding the new spell to summon Sauron. Open your data\ini\object\system\system.ini file. Under the evil spellbook I added an extra behavior. In this case I added SummonSauron.

              
Code
Behavior = OCLSpecialPower ModuleTag_SummonSauron
SpecialPowerTemplate = SpellBookSauronAlly
OCL = OCL_SauronSummoning
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
End


The first line tells the computer that this special power will use an OCL. An O(object) C(creation) L(list). This is what the computer uses to spawn our summoned units. This is further defined in data/ini/objectcreationlist.ini. We'll deal with that later.

The second line tells the computer what SpecialPowerTemplate to use. This is defined in data/ini/specialpower.ini. We'll get to this in a minute.

The third line will tell us exactly which OCL we will be using in the objectcreationlist.ini The fourth line tells the computer that you want to have this be a spell you can place somewhere on the map. CREATE_AT_LOCATION is the correct one to use. The rest is not very important for this tutorial.

Links / Downloads

 HitsAdded
New Objects2268March 26, 2007 - 5:02

Comments

Display order: Newest first

Dwarven_Axe - Monday June 21, 2010 - 19:48

Great tutorial - thanks Hostile! I followed it to make a tier 2 Summon Eagles power to replace the Summon Tom Bombadil power since I coded him in as a buildable hero.

{AE}Manveru - Thursday September 3, 2009 - 6:20

I gave this a 3 because you forgot to update the dependencies for powers for which the new one is a prerequisite, thus making any powers below it not puirchasable. Contact me if you update it and I will rerate the tutorial.

Meneldil - Tuesday December 23, 2008 - 8:58

Thank for this nice tutorial. I learned a lot from it. One question regarding the instructions. It's not fully clear to me where to place the 5 object files. The directions say to place them in the "data/ini/object folder." I figured you meant the "data/ini/object/system/system.ini" location. Is that correct? (That's what I did, but it may not be ideal). Also, I was not able to obtain the Balrog skill from the skill tree even though I had the needed 20 points (this when going down the "left" branch via the new Sauron Summon skill). I had to go down another branch using original skills in order to obtain the Summon Balrog skill. Did I do something wrong or is this a limitation?

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

 
12:18:22