The 3rd Age

The Elven Alliance

The Elven Alliance

Adding a completely new Elven faction with unique units to 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: 10328
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 OCL to our objectcreationlist.ini file. Locate this file here \data\ini\objectcreationlist.ini Add this to the end of the existing file. OCL is used to create objects out of thin air based on conditions. They may be debris that flies off a building when you hit it, it could be blood when you hit a unit.

              
Code
; Create Sauron and troops out of thin air.
ObjectCreationList OCL_SauronSummoning
CreateObject
ObjectNames = SauronAlly
Count = 1
FadeIn = Yes
FadeTime = 5000
IgnoreCommandPointLimit = Yes
Disposition = LIKE_EXISTING
Offset = X:0 Y:0 Z:0 ; Up in the air part comes from the Spellbook saying AboveLocation. This is just to spread them a bit.
End
CreateObject
ObjectNames = SauronFighterHorde
Count = 1
FadeIn = Yes
FadeTime = 3000
IgnoreCommandPointLimit = Yes
Disposition = LIKE_EXISTING
Offset = X:-15 Y:15 Z:0
End
CreateObject
ObjectNames = SauronArcherHorde
Count = 1
FadeIn = Yes
FadeTime = 3000
IgnoreCommandPointLimit = Yes
Disposition = LIKE_EXISTING
Offset = X:15 Y:-15 Z:0
End
End


I've chosen to create three objects when you summon Sauron. I want Sauron, a horde of goblin fighters, and a horde of goblin archers. Now remember these objects do not exist in the game. They were created by me so please see the attached zip file for these new objects. Creating new units is not the focus of this tutorial. That will be in another installment. New Units

Each object is named and in what quanity you want them. Count tells you the quanity. I do want them to fade in as that is appropriate for summon allies. FadeTime will tell us in ms how long it should take for them to materize.

I chose these setting to allow the goblins to show up 2 seconds before Sauron. Gives Sauron a chance to get his armor on before battle. :)

IgnoreCommandPointLimit = Yes. Well I decided Sauron can exceed commandpoint limits as all allies do. Disposition = LIKE_EXISTING This mean I want all of them to show up relative to each other. Namely where I placed the cursor to summon them.

Offset = X:0 Y:0 Z:0, Offset = X:-15 Y:15 Z:0, Offset = X:15 Y:-15 Z:0. I didn't want them to show up on top of each other so I set them to show up alittle off the x, y axis to give them enuff space to not be stepping on each other when they showed up.

Hopefully this will answer more questions than it creates. May this open a few new doors for people.

Links / Downloads

 HitsAdded
New Objects2084March 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."

 
9:42:02