The 3rd Age

Return of Shadow

Return of Shadow

A large scale mod that greatly expands the game.

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
We now want to add the spell to our SpecialPower.ini file. Locate this file here \data\ini\specialpower.ini Add this to the end of the existing file.

              
Code
SpecialPower SpellBookSauronAlly
Enum = SPECIAL_SPELL_BOOK_ELVEN_ALLIES
ReloadTime = 360000 ; in milliseconds
PublicTimer = No
RadiusCursorRadius = 75.0 ; Match the radius in FXList SummonBalrogStart
RequiredScience = SCIENCE_SauronAlly
ViewObjectDuration = 5000
ViewObjectRange = 100
End


The name is the same name we used farther up in the tutorial referencing the special power. Enum is important because you may only use the same Enum once for each faction. So because Isengard does not summon elves, I chose this unused Enum. ReloadTime allows us to tell the computer how long it takes before we can use this spell again (in milliseconds)

RadiusCursorRadius tells us the area that is where the summoned allies will show up in. Try to make this large enuff to accomodate for the number of allies showing up. RequiredScience is needed because you have to purchase this first using your command points in your tech tree before you can use the spell.

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

 
20:42:32