You`re right. There is a “fix” for commander spells so creature spells can not be mass …
You could try to make an aimed spell but with really big range "0-16"
, so it will cover entire battlefield
Ok I will try…but I only want an immediate effect, don’t need to choose any target.
Then it is a problem, you can only set LOCATION targetType
so you can click on any hex to cast.
Did you try for this?
I only need two functions:
- SPELLCASTER can cast a mess spell
- It doesn’t need to choose any target(even a location with nothing)
range 0-16 is effective for mass spell.
however,how can I set target with just 3 creatures?
“targetCondition” : {
“allOf” : {
“core:creature.preserve:ancienttreant”:“absolute”,
“core:creature.preserve:treant”:“absolute”,
“core:creature.preserve:grimhippo”:“absolute”
}
},
is this true? But it is invalid.
wrong identifier format, should be smth like “preserve:creature.grimhippo”
but it’s still wrong:
post full json in PM please
//Symbiosis Ability for grim hippogryph whose function is resurrect or cure Treant and Ancient Treant by a troop of grim hippogryph
{
"symbiosis":
{
"type": "ability",
"name": "Symbiosis",
"school":
{
"air": false,
"earth": false,
"fire": false,
"water": true
},
"level": 5,
"power": 10,
"defaultGainChance": 0,
"gainChance":
{
"castle": 0,
"rampart": 0,
"conflux" : 0
},
"animation":{
"affect":["C01SPE0"]
},
"flags" : {"rising": true,"positive": true},
"graphics":
{
"iconBook": "NewOldSpells/USELESS.bmp",
"iconScroll": "NewOldSpells/USELESS2.bmp",
"iconScenarioBonus": "NewOldSpells/USELESS3.bmp",
"iconEffect": "NewOldSpells/USELESS4.bmp"
},
"sounds":
{
"cast": "RESURECT"
},
"targetType" : "CREATURE",
"targetCondition" : {
"allOf" : {
"core:creature.preserve:ancienttreant":"absolute",
"core:creature.preserve:treant":"absolute",
"core:creature.preserve:grimhippo":"absolute"
}
},
"levels":
{
"base":
{
"power": 10,
"aiValue": 12,
"range": "0-16",
"targetModifier":
{
"smart": true
}
},
"none":
{
"description": "",
"cost": 0,
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"permanent",
"minFullUnits" : 1
},
"cure":{
"type":"core:dispel",
"indirect": true,
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
}
},
"basic":
{
"description": "",
"cost": 0,
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"permanent",
"minFullUnits" : 1
},
"cure":{
"type":"core:dispel",
"indirect": true,
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
}
},
"advanced":
{
"description": "",
"cost": 0,
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"permanent",
"minFullUnits" : 1
},
"cure":{
"type":"core:dispel",
"indirect": true,
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
}
},
"expert":
{
"description": "",
"cost": 0,
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"permanent",
"minFullUnits" : 1
},
"cure":{
"type":"core:dispel",
"indirect": true,
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
}
}
}
}
}
Still same wrong format
"core:creature.preserve:ancienttreant"
should be "preserve:creature.ancienttreant"
Sorry…still wrong…cannot cast to any target
should be “anyOf” clause
Also there are more errors in configuration:
-
"minFullUnits" : 1
means that spell will work only if at least one unit will be resurrected, is it desired? -
"indirect"
to be used for obstacles only, there is indirect cure in resurrection spell as a special case for archangel, it will not work in your case.
I am outside now…could you help me to test it?By using any kinds of creatures. Thanks.
Send me minimal complete mod in private message.
I am outside…but it’s needn’t. No graphics and other stuffs, only a symbiosis.json is enough. You can put it into any town mod and any creatures.
With this configuration it only complains about missing icons
//Symbiosis Ability for grim hippogryph whose function is resurrect or cure Treant and Ancient Treant by a troop of grim hippogryph
{
"symbiosis":
{
"type": "ability",
"name": "Symbiosis",
"school":
{
"air": false,
"earth": false,
"fire": false,
"water": true
},
"level": 5,
"power": 10,
"defaultGainChance": 0,
"gainChance":
{
"castle": 0,
"rampart": 0,
"conflux" : 0
},
"animation":{
"affect":["C01SPE0"]
},
"flags" : {"positive": true},
"graphics":
{
"iconBook": "NewOldSpells/USELESS.bmp",
"iconScroll": "NewOldSpells/USELESS2.bmp",
"iconScenarioBonus": "NewOldSpells/USELESS3.bmp",
"iconEffect": "NewOldSpells/USELESS4.bmp"
},
"sounds":
{
"cast": "RESURECT"
},
"targetType" : "LOCATION",
"targetCondition" :
{
"anyOf" :
{
"preserve:creature.ancienttreant":"absolute",
"preserve:creature.treant":"absolute"
}
},
"levels":
{
"base":
{
"power": 10,
"aiValue": 12,
"range": "0-16",
"description": "",
"cost": 0,
"targetModifier":
{
"smart": true
},
"battleEffects":
{
"heal":
{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"permanent"//,
//"minFullUnits" : 1
},
"cure":
{
"type":"core:dispel",
//"indirect": true,
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
}
},
"none":
{
},
"basic":
{
},
"advanced":
{
},
"expert":
{
}
}
}
}
{
"grimhippo": {
...
"abilities": {
"casts" : {
"type" : "CASTS",
"val" : 10
},
"castsSymbiosis" : {
"subtype" : "spell.symbiosis",
"type" : "SPELLCASTER",
"val" : 3
},
"symbiosisPower" : {
"subtype" : "spell.symbiosis",
"type" : "SPECIFIC_SPELL_POWER",
"val" : 10
},
...
Thanks! I will test it while I am home!
This is little nonsense BTW. Or just placeholders.