It is a bug (not related to spells). Stack should not try to move if it have zero speed.
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
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.
Implemented. Added bool flag summonByHealth
. F.e. 12 SP, 10 Level power, 40 HP => 3 creatures
Only standard h3 creaures can be summoned?
When I type
console says failed to resolve identifierâŚ
Try full identifier (with mod id).
âidâ:âhota.pirateâ,
or
âidâ:âhota.cove.pirateâ doesnât work either ;[
shoud be hota.cove:pirate
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âŚ
It is not obvious and very confusing actually. VCMI converts mod id to lower case, but for entity identifiers lowerCamelCase is recommended.
What exactly means this summonByHealth
. We should type for example in spell json?:
âflagsâ : {
âindifferentâ: true
âsummonByHealthâ : true
},
No it is not generic âflagâ, it is boolean option of the effect.
"battleEffects" : {
"summon" : {
"exclusive" : true,
"id" : "waterElemental",
"permanent" : false,
"type" : "core:summon",
"summonByHealth" : true
}
},
Thanks, Iâll test!
Is there any way to summon only one creature regardless of heroâs spell power?
No it`s not.
Can someone helps me for the âidâ fill for the summon spell? I tried plenty of times to get this right but I canât figure what I need to put in the âidâ section. I tried ârfggoldgolemâ, ârfgGoldGolemâ, ârefugee.rfggoldgolemâ, ârefugee.rfgGoldGolemâ, ârefugeetown.rfggoldgolemâ, ârefugeetown:rfggoldgolemâ, etc.
@misiokles says its âidâ:âdoommod.lostsoulâ - Lostsoul is the creatureâs id but what is exactly doommod? folder name, town name, etc.?
@AVS says itâs âidâ:âhota.cove:pirateâ - and here thereâs hota.cove and then â:â followed by the creature id. Iâm lost.
I have a spell localized in: (spell id = ârfgSummonâ)
RefugeeTown/content/config/refugee/spells/spell.jsonand Iâd like to summon this creature: (creature id = ârfgGoldGolemâ)
RefugeeTown/content/config/refugee/creatures/REFGL5L
What am I missing? Thanks for your answers
This should work if spell and creature are in same mod.
âbattleEffectsâ : { âsummonâ : { âexclusiveâ : true, âidâ : ârfgGoldGolemâ, âpermanentâ : false, âtypeâ : âcore:summonâ, âsummonByHealthâ : true } },
This should work anywhere
âbattleEffectsâ : { âsummonâ : { âexclusiveâ : true, âidâ : " refugeetown:rfgGoldGolem", âpermanentâ : false, âtypeâ : âcore:summonâ, âsummonByHealthâ : true } },
This still doesnât work (after the spell is launched, hero do spell animation and then game soft-freeze until I check an error dialog box outside the game. When I comeback to the game Iâm back at the main menu).
âbattleEffectsâ : { âsummonâ : { âexclusiveâ : true, âidâ : ârfgGoldGolemâ, âpermanentâ : false, âtypeâ : âcore:summonâ, âsummonByHealthâ : true } },
Game crashed with this one.
âbattleEffectsâ : { âsummonâ : { âexclusiveâ : true, âidâ : " refugeetown:rfgGoldGolem", âpermanentâ : false, âtypeâ : âcore:summonâ, âsummonByHealthâ : true } },
If I remove the uppercases (refugeetown:rfggoldgolem), then the game soft-freeze like previously.
Logs_txt.rar (111,5 Ko)
The spell
rfgSummon.json (2,5 Ko)
The creature
REFGL5L.json (1,3 Ko)
Any idea why it still doesnât want to work?
This should be correct one, but there a space right after ", remove it. And post new logs if it crash again.