.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Basic modding Question: Adding a new ritual spell (http://forum.shrapnelgames.com/showthread.php?t=43127)

hEad May 14th, 2009 08:44 AM

Basic modding Question: Adding a new ritual spell
 
I know this is probably a snap for those in the know, but i'm trying to make a small mod that allows any leader to cast gift of reason on any unit.

#modname "Ultimate Gift of Reason"
#description "Gives all units the ability to cast Gift of Reason."
#domversion 3.21
-icon "something.tga"


#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any unit its sees fit."
#path 0 -1
#path 1 -1
#school 3
#researchlevel 0
#pathlevel 0 -1
#pathlevel 1 -1
#end

My reasoning is that if i just copy the spell and assign it to no path requirements in the school on const - it should just show up and be ready to use. Its not working out that way. I also don't want it to cost any gems to cast - but i cant seem to work out where that would go either.

Anyone give me a few much appreciated pointers on this?

llamabeast May 14th, 2009 09:15 AM

Re: Basic modding Question: Adding a new ritual spell
 
Can't be done I'm afraid. I'm pretty sure every spell has to have a magic path associated with it. The best you could do would be to put it in several, or even all of the magic paths (i.e. an F1 spell, an A1 spell etc), and have it at researchlevel 0.

hEad May 14th, 2009 09:48 AM

Re: Basic modding Question: Adding a new ritual spell
 
Thanks llamabeast.

What I’m thinking was inspired by the discussion in the Enhanced Gameplay thread, in that inevitably, games degenerate into a race for the big end summons with little variation. What I’m proposing is introducing a mass scale opportunity for nations to gift of reason any unit they wish be it summons or national units, emphasising a very enjoyable component of the game – that of thugging.

Players could then focus on developing champions from their units and summons and tailoring them to their opposition. (could you imagine the fun with blessed thugged up Burning ones??) Armies would now be composed of massed mundane armies led by scores of champions backed up by mages. It would take the emphasis off of the end game summons (though still powerful) and get players building thugs through out the game, in my view an awesome prospect for further tactics and strategy.

It would mean that nations like Man and Marverni to name a few, would actually have an opportunity to be competitive - having the ability to build tailored champions from summons to put the hurt on opponents, and seeing as all nations generally have easier access to different summons, there would be a lot of variety in the champions fielded.

Ulm would now be considered the ultimate trading partner and worth keeping around due to the demand for equipment to furnish all these new thugs. An arms market could develop as demand for Fire gear would be high for those facing Neifel and after the threat is removed, they would be dumped for sale as a nation re-equips to face the next opponent (water gear for Abysia for example) (Just thinking as I type…)

So with that in mind, if I create 7 versions of this spell, 1 for each path - that should work? Also, have I formed my little mod properly? Any mistakes?

If I copy Gift of Reason how do I make the spell cost nothing?

Gregstrom May 14th, 2009 10:09 AM

Re: Basic modding Question: Adding a new ritual spell
 
I don't think ritual spells can be free (but if you set the fatigue to under 100 you should find out, I think). Also, why only 7 versions and not 8?

hEad May 14th, 2009 10:17 AM

Re: Basic modding Question: Adding a new ritual spell
 
Quote:

Originally Posted by Gregstrom (Post 690903)
I don't think ritual spells can be free (but if you set the fatigue to under 100 you should find out, I think). Also, why only 7 versions and not 8?

Ok then - bear in mind i have no idea at all about modding, just dipping my toes in now with this effort, so is the 8th one holy?

If it has to cost a gem then that shouldn't be a problem.

Gregstrom May 14th, 2009 10:24 AM

Re: Basic modding Question: Adding a new ritual spell
 
Fire, Water, Air, Earth, Astral, Death, Nature, Blood. If you're counting GoR as the existing nature spell, then you need 7 I guess. Otherwise it's 8. You might be able to create a holy version as well, but Holy ritual spells can cause crashes.

hEad May 14th, 2009 10:31 AM

Re: Basic modding Question: Adding a new ritual spell
 
Ah yes, blood, for got to carry the 2 :)

I'm searching through the forum to see if i can work this out...

How hard would it be to do this Greg? add a 0 level, available to all paths (not Holy), Gift of Reason spell that costs one gem?

Gregstrom May 14th, 2009 10:57 AM

Re: Basic modding Question: Adding a new ritual spell
 
Well, you're really just creating one spell then making 7 copies with different paths each time.

Essentially, I think it's

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any unit its sees fit."
#path 0 1
#school 3
#researchlevel 0
#pathlevel 0 1
#end

then repeat for paths 1-7. Voila!

Gregstrom May 14th, 2009 10:58 AM

Re: Basic modding Question: Adding a new ritual spell
 
Oh, and add #fatiguecost 90 and it won't even cost a gem.

hEad May 14th, 2009 11:20 AM

Re: Basic modding Question: Adding a new ritual spell
 
Hey Greg, thankyou very much for this help!

If you could indulge me a wee bit further:

This is what i have

#modname "Ultimate Gift of Reason"
#description "Gives all units the ability
to cast Gift of Reason."
#domversion 3.21
-icon "something.tga"

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 1
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 2
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 3
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 4
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 5
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 6
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 7
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

#newspell
#copyspell "Gift of Reason"
#name "Promotion"
#descr "Allows a leader to promote any
unit its sees fit."
#path 0 8
#school 3
#researchlevel 0
#pathlevel 0 1
#fatiguecost 90
#end

The problem with this is that it doesn't do anything. I can find it in the mod list to activate, but nothing in game happens. It isnt listed in construction and my mages can't cast the spell?

Whilst testing this, there are no other mods active.


All times are GMT -4. The time now is 08:42 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.