Modding FAQ

I need consultation.
I want to make creature, will can cast resurrection. And one creature can resurrect 25 hit points per cast.
I write its abilities like in Mod Wiki:

{“type”:“SPELLCASTER”,
“subtype”:“spell.resurrection”,
“value”:3,
“additional info”:100},
{“type”:“SPECIFIC_SPELL_POWER”,
“value”:500,
“subtype”:“spell.resurrection”}

But when in battle, cursor doesn’t change over my dead stack, and nothing is resurrected.
Please write, how this ability must be written to work?

Did you give CASTS to your creature? A creature needs to have at least 1 cast to be able to do anything. See Archangel for reference.

If cast is not set, there is “limitless” number of casts (maybe limited by spellpoints- not checked).
I added CAST altrough, it didn’t help.

I forgot of archangels.
I copied parametres from them, this didn’t help:

{
“type”:“SPELLCASTER”,
“value”:0,
“subtype”:“spell.resurrection”,
“additionalInfo”:100
},
{
type:“SPELLCASTER”,
“value”:25,
“subtype”:“spell.resurrection”
},
{“type”:“CASTS”,
“value”: 2}

“spellpoints” set to 200, it’s also not a problem…

Don’t know what to do…
I’m trying to make First Aid Tent external, already corrected DEF, and try to force it resurrect stacks:-)

This is how Archangel config looks currently:

"resurrection100hp" : 
{
	"type" : "SPECIFIC_SPELL_POWER",
	"subtype" : "spell.resurrection",
	"val" : 100
},
"resurrects" :
{
	"type" : "SPELLCASTER",
	"subtype" : "spell.resurrection"
},
"spellpoints" :
{
	"type" : "CASTS",
	"val" : 1
},

What I see in yours:

  1. Two bonuses with type “SPELLCASTER”. One should be “SPECIFIC_SPELL_POWER”.
  2. “value” should be “val”
  1. it’s miswriting:-)
  2. smell a diabolic lot of work to convert all mods to 0.93b
    After that try again

For what purpose these strings like “spellpoints” added before abilities? There may be any text? Or these strings are fixed?

I saw an example mod “conflux-tweaks.zip” wich shows how to modify standard creatures and towns.
But this means that they will be modified.
Is there a possibility to “clone” standard castles (for example take “castle” faction, make a copy as “castlex” faction), and then modify it same way?

No. And this is unlikely to change.

Why?
I don’t think it’s hard to copy structure data to one place to another. One copy operation is so hard?

Because this is far more complex than a simple copy. If you indeed looked in sources this should have been obvious.

I didn’t looked for this part.
So it’s harder, that to load external mod?
OK, I already have standard towns externationalized as json files. Just proceed old way to clone castles…

I have a question.
In examples of conflux-tweaks there I can modify classic creatures like

“core:psychicElemental” :
{
… replaced parametres…
}

But how can I address creatures from other mods?
Record like

“diabloScorcher”{“faction”:“newfaction”}

in new mod in creatures section don’t displayed as error, but faction alignment of creatures stays the same in game.

Replace “core” with name of your mod:
:

You said earlier this adression will be ripped off in next release. Is it not so?

What I’d like to have in next release is:

  1. Mods MUST use format : to access any other mod
  2. Mods can access ONLY mods mentioned in mod dependencies (“depends” entry)

In current version this will cause warning and may work correctly. In next version this will be considered as error meaning that game won’t even start.

So accessing (for example) WoG creature possible only if

  1. WoG is dependency
  2. access done in wog: format

By the way I wanted to ask:
will Silo work, if I point that it produces “gold”? And what amount of gold it produce per day?
Same for “mythril”?

  1. Will repeat my question, maybe someone can say something:
    will Silo in town work, if I point that it produces “gold”? And what amount of gold it produce per day?
    Same for “mythril”?

  2. In Wiki there are some bonuses without vals, for example;
    MOVEMENT
    LAND_MOVEMENT
    SEA_MOVEMENT
    SIGHT_RADIOUS

In some mods I saw that, for example, SIGHT_RADIOUS is getting some value trough “val”.
Can someone correct Wiki, if this and other bonuses require val, and what’s it’s meaning?

  1. I want to reproduce artifact from HMM1, which gives additional shot to ballista during siege. Is it possible right now, or not? If possible, what should I write in Bonuses?

  2. If I want to create creature artifact, that allows creature to rise creatures from dead allies, I must wrote this, right?
    :

		"bonuses":
		
			{
				"type": "DAEMON_SUMMONING",
				"subtype": "creature.demon",
				"val": 50
			}
		]
  1. Is there a way to point % of happening of DEATH_STARE ability?
  1. Unlikely. And if it will it will produce 1 gold / day.

  2. sight radius and movement bonuses obviously need distance to function. Probably Warmonger decided not to document something that is obvious.

  3. val

It’s not obvious for me. What to write to them? % of bonus to base of points/cells on adventure map?

Warmonger, can it be added to Wiki? And MORALE/LUCK also.

val is already reserved for

Added some triial descriptions for these.

Just in case, everone can edit wiki :stuck_out_tongue:

DAEMON_SUMMONING require creature CASTS to work.

When I tried it, creature summoned creatures without casts unlimitedly.
CAST only limited ability to 1 (in my case).

And 6th question:

IMPROVED_NECROMANCY
allows Necropolis units other than skeletons to be raised by necromancy

When I added it to hero with “subtype”:“creature.someCreature”, it didn’t work (trivial sceletons were rased). Can you also describe it more fully?