Cathedral and 3 towns released!


#182

You`re right. There is a “fix” for commander spells so creature spells can not be mass …


#183

You could try to make an aimed spell but with really big range "0-16", so it will cover entire battlefield


#184

Ok I will try…but I only want an immediate effect, don’t need to choose any target.


#185

Then it is a problem, you can only set LOCATION targetType so you can click on any hex to cast.


#186

Did you try for this?
I only need two functions:

  1. SPELLCASTER can cast a mess spell
  2. It doesn’t need to choose any target(even a location with nothing)

#187

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.


#188

wrong identifier format, should be smth like “preserve:creature.grimhippo”


#189

but it’s still wrong:
wrong


#190

post full json in PM please


#191
//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
					}
				}
			}
		}
		}
	}

#192

Still same wrong format
"core:creature.preserve:ancienttreant"

should be "preserve:creature.ancienttreant"


#193

Sorry…still wrong…cannot cast to any target


#194

should be “anyOf” clause


#195

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.

#196

I am outside now…could you help me to test it?By using any kinds of creatures. Thanks.


#197

Send me minimal complete mod in private message.


#198

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.


#199

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
		},

...

#200

Thanks! I will test it while I am home!


#201

This is little nonsense BTW. Or just placeholders.