.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

BCT Commander- Save $8.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old September 11th, 2010, 08:12 AM
Nounours's Avatar

Nounours Nounours is offline
Corporal
 
Join Date: Aug 2008
Location: France
Posts: 90
Thanks: 6
Thanked 17 Times in 6 Posts
Nounours is on a distinguished road
Default It's a Kind of Magic : pooling spell modding tips

Like many modders, I think, I sometimes have some problems when modding new spells, especially when trying new things.

On some occasions, I search on the forum for tips from other modders who experimented the same problems. On other occasions, I just find the solution myself, after many awkward attempts.

So, I would like to pool all these solutions and problems, as it may be useful to other people.
__________________
It's better to be GoRed by a nature mage than gored by a boar...
Reply With Quote
  #2  
Old September 11th, 2010, 08:25 AM
Nounours's Avatar

Nounours Nounours is offline
Corporal
 
Join Date: Aug 2008
Location: France
Posts: 90
Thanks: 6
Thanked 17 Times in 6 Posts
Nounours is on a distinguished road
Default Re: It's a Kind of Magic : pooling spell modding tips

First, here is a spell I had problem to mod.

It was intended as a spell that kill the caster and summon another unit (a bit like Ashdod's "Banquet for the Dead").

I saw on the forum that i was not the only one trying to use this effect, and when i finally fixed it, I was suggested by another modder (thank for your help, Chris ) to post on the forum the solution I had found.

So, here is my working fixed spell :


Quote:
#newspell
#name "****"
#descr "[Blah, blah, blah]."

#school 6 [or whatever you want]
#researchlevel 0
#path 0 7
#pathlevel 0 2

#effect 10021
#nreff 1
#damage [summoned unit's number]
#fatiguecost 100
#nextspell "Kill caster"
#restricted [nation's number]
#end
> #effect 10021, as everybody knows, will summon a commander. You can use effect #10001 to summon units, it will also work.

> #nextspell "Kill caster" serves to kill the caster of the spell. DON'T FORGET TO ALSO MOD THIS SECOND SPELL !

Quote:
#newspell
#name "Kill Caster"
#descr "Kill caster"

#school -1
#researchlevel 0
#path 0 7
#pathlevel 0 1
#path 1 5
#pathlevel 0 1
#effect 10090
#nreff 1
#fatiguecost 50
#restricted [nation's number]
#end
> #effect 90 kill the caster, BUT you have to add 10000 to this number (=10090) if you want it to work as a ritual (it appears it has been my main problem when trying to mod this spell).
__________________
It's better to be GoRed by a nature mage than gored by a boar...
Reply With Quote
The Following 3 Users Say Thank You to Nounours For This Useful Post:
  #3  
Old September 14th, 2010, 09:14 PM
HoneyBadger's Avatar

HoneyBadger HoneyBadger is offline
General
 
Join Date: Oct 2006
Posts: 3,445
Thanks: 85
Thanked 79 Times in 51 Posts
HoneyBadger is on a distinguished road
Default Re: It's a Kind of Magic : pooling spell modding tips

This is a really useful thread. I hope it stays active.
__________________
You've sailed off the edge of the map--here there be badgers!
Reply With Quote
  #4  
Old September 16th, 2010, 05:25 AM
Nounours's Avatar

Nounours Nounours is offline
Corporal
 
Join Date: Aug 2008
Location: France
Posts: 90
Thanks: 6
Thanked 17 Times in 6 Posts
Nounours is on a distinguished road
Default Re: It's a Kind of Magic : pooling spell modding tips

Well, it's up to you, guys !

Share with us of the tiny bits of modding knowledge you had to hardly conquer, and all shall hail your name !
__________________
It's better to be GoRed by a nature mage than gored by a boar...
Reply With Quote
  #5  
Old September 16th, 2010, 08:45 AM
Stavis_L's Avatar

Stavis_L Stavis_L is offline
Second Lieutenant
 
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
Stavis_L is on a distinguished road
Default Re: It's a Kind of Magic : pooling spell modding tips

Just so that people that come across this thread may also find it, there is a general "helpful modding tips" thread here:
http://forum.shrapnelgames.com/showthread.php?t=42570

There are some spell modding specific tips (or at least links to them) in there as well.
__________________
A nation mod I created:
Mistica: A Magocratic Police State
Micro-mods by me you might find useful:
Brainless Soulless - a fix for Life after Death/Ankh "exploit", Bogarus Scout Fix
Reply With Quote
  #6  
Old September 20th, 2010, 10:27 AM
Ferrosol's Avatar

Ferrosol Ferrosol is offline
Sergeant
 
Join Date: Dec 2006
Location: The wild barbaric north
Posts: 215
Thanks: 50
Thanked 5 Times in 4 Posts
Ferrosol is on a distinguished road
Default Re: It's a Kind of Magic : pooling spell modding tips

One problem I had getting working was the #nextspell command. For whatever reason I could not get it to work. It turns out that the 2nd spell that makes up the nextspell component has to be above the original spell in the spell list to get it to work for some reason.
Reply With Quote
  #7  
Old September 20th, 2010, 01:15 PM

rdonj rdonj is offline
General
 
Join Date: Oct 2007
Posts: 3,007
Thanks: 171
Thanked 206 Times in 159 Posts
rdonj is on a distinguished road
Default Re: It's a Kind of Magic : pooling spell modding tips

Dominions reads a .dm from top to bottom. So if you try to create a spell referring to a spell you've created yourself, it needs the spell you're nextspelling to be on top, or it thinks it should already know it exists. Hence errors.
__________________
"Easy-slay(TM) is a whole new way of marketing violence. It cuts down on all the red tape and just butchers people. As a long-time savagery enthusiast myself, I'm very excited about the synergies that the easy-slay(TM) approach brings to the entire enterprise." -Dr DrP
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:50 PM.


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