Json configuration for spells


#61

It is a bug (not related to spells). Stack should not try to move if it have zero speed.


#62

This is my first attempt to revive forgotten Fear spell in H3/VCMI
www101.zippyshare.com/v/F1YFKP8V/file.html


Please note, that Fear spell was planned diffirent than Azure’s Dragon ability. I try to configure it using these informations:
heroes.thelazy.net/wiki/Fear_(spell
heroescommunity.com/viewthread.p … 6509#focus


#63

I created new summon spell summonGenie

It’s not good how currently number of summoned creatures is checked.
If my hero has 12 spellpower, and power=1 for expert level, it summons 12 genies.
It would be good enough, if it took power=120, for example, 120/40 genie hit points=3, and summoned 3 genies.
Currenlty I could not create summon devils, for example, 1 devil or another 7th level creature for each spell power is cheating.

PS It looks like power=30 in root of spell config is ignored, and only n level power is used. As I remember, in old configuration root power * spell power of herp + level power bonus gave full damage of spell.


#64

Implemented. Added bool flag summonByHealth. F.e. 12 SP, 10 Level power, 40 HP => 3 creatures


#65

Only standard h3 creaures can be summoned?
When I type

console says failed to resolve identifier…


#66

Try full identifier (with mod id).


#67

“id”:“hota.pirate”,
or
“id”:“hota.cove.pirate” doesn’t work either ;[


#68

shoud be hota.cove:pirate


#69

it works, thank you! But mod id must not contains capital letters.
For example:
“id”:“doomMod.lostsoul” - is bad
“id”:“doommod.lostsoul” - is good
Maybe it’s obvious…


#70

It is not obvious and very confusing actually. VCMI converts mod id to lower case, but for entity identifiers lowerCamelCase is recommended.


#71

What exactly means this summonByHealth. We should type for example in spell json?:
“flags” : {
“indifferent”: true
“summonByHealth” : true
},


#72

No it is not generic “flag”, it is boolean option of the effect.


#73
		"battleEffects" : {
			"summon" : {
				"exclusive" : true,
				"id" : "waterElemental",
				"permanent" : false,
				"type" : "core:summon",
				"summonByHealth" : true
			}
		},

#74

Thanks, I’ll test!