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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old January 1st, 2007, 06:44 PM
Uh-Nu-Buh's Avatar

Uh-Nu-Buh Uh-Nu-Buh is offline
Sergeant
 
Join Date: Jan 2004
Location: athens, georgia
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
Uh-Nu-Buh is on a distinguished road
Default #newspell \"woe is me\"

I can't seem to get my new divine/holy spells to work. They don't cause any problems, but they don't show up as battlefield spells when I check scripting.

Is this perhaps a function of the #effect mod?

Here is a sample spell:

#newspell
#copy "luck"
#name "divine favor"
#descr "Begs the god to favor a few nearby warriors in battle."
#school 7
#researchlevel 0
#path 0 8
#pathlevel 0 1
#fatiguecost 10
#range 5
#precision 2
#aoe 1
#restricted 75
#end

Thanks for any help!
__________________
--Uh-Nu-Buh, Fire/Death
Reply With Quote
  #2  
Old January 1st, 2007, 08:41 PM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default Re: #newspell \"woe is me\"

Hi,
Just tried it removing the #restricted 75 (it makes it only castable by some modded new nation I suppose...) ... then it works perfectly, here's proof !

Reply With Quote
  #3  
Old January 1st, 2007, 08:51 PM
Uh-Nu-Buh's Avatar

Uh-Nu-Buh Uh-Nu-Buh is offline
Sergeant
 
Join Date: Jan 2004
Location: athens, georgia
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
Uh-Nu-Buh is on a distinguished road
Default Re: #newspell \"woe is me\"

Thanks PDF! This really helps. I should have tried that. Been working too long and my head is fried.

The spell is part of a new mod involving nation 75 "The Hidden Empire", so I need to:

1. find out why it isn't available to the new nation.
2. find out why it wasn't available to be used by you even though it showed up for you as H1 the way it should (that's how it looks from your screen shot). Maybe change it from 7 to -1 or -2....
__________________
--Uh-Nu-Buh, Fire/Death
Reply With Quote
  #4  
Old January 1st, 2007, 09:19 PM
Uh-Nu-Buh's Avatar

Uh-Nu-Buh Uh-Nu-Buh is offline
Sergeant
 
Join Date: Jan 2004
Location: athens, georgia
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
Uh-Nu-Buh is on a distinguished road
Default Re: #newspell \"woe is me\"

Ok, for anyone out there experimenting with spells--some tips:

1. Create your nation first, then any spells that are nation restricted to the new nation.
2. Divine magic should be #school 7. -2 (for nation restriction) -1 (for un-researchable) etc. do not apply.
3. Any changes you make to spells apparently do not take effect to current saved games. You must start a new game in order to test/enact the changes. This is in stark contrast to unit changes (e.g. changing your new light infantry's strength from 11 to 10 will take effect immediately as soon as you save the mod and restart dom III.)

That should do it.
__________________
--Uh-Nu-Buh, Fire/Death
Reply With Quote
  #5  
Old January 2nd, 2007, 03:50 AM
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: #newspell \"woe is me\"

Good to know. Still no way to create new magical paths though, sigh. What about the bit where it says holy gems? any way to reinstate them? If I were doing holy gems, I'd make it so you needed a temple and a priest entered into the temple (like you do to summon monsters in some sites, or to use the Agarthan's oracle device), then you'd earn 1 holy gem (in the form of a 'martyr' as opposed to 'bloodslave', martyrs would be blueish human shapes with a faint golden outline) per turn per temple + priest. Unholy magic/gems would be fun too, perhaps unholy gems would come in the form of flayed demonskins instead of flayed humanskins (or maybe just half-human half demon babies), and be black human shapes with glowing golden eyes and a faint red outline, and require the desecrated temple of another god (which would make independent temples, as well as the temples of other nations, useful-creating a desecrated temple would require an unholy priest spending 400 gold (or more, or less for some nations, or whatever) on a province which at one time contained a temple.
__________________
You've sailed off the edge of the map--here there be badgers!
Reply With Quote
  #6  
Old January 2nd, 2007, 03:59 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: #newspell \"woe is me\"

Quote:
Uh-Nu-Buh said:
3. Any changes you make to spells apparently do not take effect to current saved games. You must start a new game in order to test/enact the changes. This is in stark contrast to unit changes (e.g. changing your new light infantry's strength from 11 to 10 will take effect immediately as soon as you save the mod and restart dom III.)
This isn't exactly true. Generating a new turn works, at least sometimes. Furthermore, if the spell is cast in a battle (or a priest was scripted to cast it in a battle), changing the spell and re-viewing the battle after restarting Dom changes the battle. Changing range might make the spell not cast, changing fatigue cost shows up, etc.
Reply With Quote
  #7  
Old January 2nd, 2007, 10:50 PM
Uh-Nu-Buh's Avatar

Uh-Nu-Buh Uh-Nu-Buh is offline
Sergeant
 
Join Date: Jan 2004
Location: athens, georgia
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
Uh-Nu-Buh is on a distinguished road
Default Re: #newspell \"woe is me\"

Endo:

Generating a turn: doesn't do it for me. Confirmed again just now. I changed #school and the change does not take effect until you restart Dom III and make a new game. Could be other changes (range or aoe) will change based on turn generation. I also tested #restricted and that change did not take place until a new game was started as well.

Battles: I need to check this out. I am guessing this is only for cosmetic changes??? Damage and etc. are prefigured--you are just watching an event that has already taken place, so changes to a spell like AOE and damage should not effect any battle changes. Maybe an AOE change would show a bigger or smaller splash, but the same units would be affected either way and the same dge would be done either way. Of course you state that changing range and fatigue shows in the battle re-play, which does not make any sense at all.... I guess my understanding is flawed.
__________________
--Uh-Nu-Buh, Fire/Death
Reply With Quote
  #8  
Old January 3rd, 2007, 05:48 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: #newspell \"woe is me\"

You have to restart Dominions before the game uploads the mods it has in memory. However, I updated a .dm, restarted Dominions then watched the same fight of a same turn multiple times. I only changed fatigue and number of effects, but both changes worked.
Reply With Quote
  #9  
Old January 3rd, 2007, 08:34 AM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default Re: #newspell \"woe is me\"

Quote:
Uh-Nu-Buh said:
Ok, for anyone out there experimenting with spells--some tips:

1. Create your nation first, then any spells that are nation restricted to the new nation.
2. Divine magic should be #school 7. -2 (for nation restriction) -1 (for un-researchable) etc. do not apply.
3. Any changes you make to spells apparently do not take effect to current saved games. You must start a new game in order to test/enact the changes. This is in stark contrast to unit changes (e.g. changing your new light infantry's strength from 11 to 10 will take effect immediately as soon as you save the mod and restart dom III.)

That should do it.
For 1/, I find this understandable, there is no way to define in what order mods would be read by the game engine, so any specifics to new nations should be in the same mod that defines the nation.
About 3/ I think it hasn't to do with saved games but rather that mods are read/loaded only when you boot up the game, so you have to quit/restart to have any change enforced. Maybe there's something more with spells, have to test..
Reply With Quote
  #10  
Old January 11th, 2007, 11:08 AM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: #newspell \"woe is me\"

Quote:
Uh-Nu-Buh said:
Battles: I need to check this out. I am guessing this is only for cosmetic changes??? Damage and etc. are prefigured--you are just watching an event that has already taken place, so changes to a spell like AOE and damage should not effect any battle changes. Maybe an AOE change would show a bigger or smaller splash, but the same units would be affected either way and the same dge would be done either way. Of course you state that changing range and fatigue shows in the battle re-play, which does not make any sense at all.... I guess my understanding is flawed.
When the game shows you battles, it's not actually showing you what happened so much as working out the battle again. It knows the starting configuration and the random number seed that the host used, so it just goes through the same calculations and shows you what happens. If you change things, the battle will come out differently.

Of course your situation in the game, and the battle statistics, depend on the results the host got when it ran through the battle. So you could change things so that when you watch the battle it'd look like you won, even though you lost. Last time a patch came out I remember someone getting really annoyed because the battle view clearly showed him winning, but all his men were gone - it was because the host had played the turn with the new patch and he hadn't got it yet (or vice versa), and the minor changes in the patch were enough to give radically different results in that particular battle. Chaos theory, I guess.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
Reply

Bookmarks


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 07:23 PM.


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