Spells and Environments Modding Question

I have looked but I can't find tags for it. Can you make a spell that can only be cast on tiles in certain environments? Not terrain but environments like Grasslands or Dead.

2,425 views 4 replies
Reply #1 Top
  • <GameModifier>            
    • <ModType>Map</ModType>            
    • <Attribute>PlaceEnvironment</Attribute>            
    • <TerrainType>GrasslandEnvironment</TerrainType>        
  • </GameModifier>        
  • <ValidTerrainCategory>Forest</ValidTerrainCategory>        
  • <ValidTerrainCategory>Land</ValidTerrainCategory>

 

or       <ValidTerrainType>HillsTerrain</ValidTerrainType>

 

Some examples in the corespells. I would try validterraintype with GrasslandsEnvironment to see if that works.

Reply #2 Top

I didn't actually try <validterraintype> with GrasslandsEnvironment because I assumed <validterraintype> wouldn't work with an environment, however it does use the <TerrainType> tag with environments above. Unfortunately it didn't work, even with the <validterraintype>GrasslandsEnvironment</validterraintype> the spell can be cast anywhere. I also tried <ValidTerrainCategory>Fertile_Land</ValidTerrainCategory>   but that didn't work either.

Reply #3 Top

I haven't seen anything that would make this possible.

Reply #4 Top

There are some spells that can only be cast on "Friendly Territory".  Perhaps that could provide a clue as to how this can be accomplished.  This would be an interesting mechanic to give magic more flavor.