I'd like to know how to disable a specific spell so that neither I nor the AI can use it. The spell in question is Dispel Wave?
I'd also like to know how to modify the city destruction rate. I tried messing with the game files once, but when I tried to destroy cities after the changes, the game crashed.
Does anyone know how to increase (preferably make it instantaneous) the city destruction rate?
I'd like to know how to disable a specific spell so that neither I nor the AI can use it. The spell in question is Dispel Wave?
I'd also like to know how to modify the city destruction rate. I tried messing with the game files once, but when I tried to destroy cities after the changes, the game crashed.
Does anyone know how to increase (preferably make it instantaneous) the city destruction rate?
You can easily disable the spell in spells.ini with the lines:
Disabled=True
InvalidTreasure=True
; It is possible to remove a spell from the game by adding the line Disabled=True to the spell.
; Such spells cannot be cast by human or AI players.
; In this case, the spell should also be removed from the human default picks, as well as the AI's
; starting spell selection script, and unit spell abilities.
So, you might also want to replace spell 52 in herodata.ini and SDispellingWave in AISSpell.CAS with something else.
If you're hesitant to cheat that much, you could simply adjust the spell a little in the MODDING.INI file, something like this:
; The highest distance an AI can target from their nearest unit or city when casting Dispelling Wave, Fire Storm, Stasis, or Blizzard.
; Set to -1 to use the actual scouting range of the unit or city.
AIUnitcurseUnitdistance=-1
AIUnitcurseCitydistance=-1
Adjustments to the destruction rate of cities can be found in MODDING.INI:
; Number of people removed per turn when razing a city
RazePopShrink=2500
; Number of buildings removed per turn when razing a city
RazeBuildingSell=4
gostaria de saber como desativar uma magia específica para que nem eu nem a IA possamos usá-la. A magia em questão é Dissipar Onda?
Também gostaria de saber como modificar a taxa de destruição de cidades. Tentei mexer nos arquivos do jogo uma vez, mas quando tentei destruir cidades após as alterações, o jogo travou.
Alguém sabe como aumentar (de preferência para que seja instantâneo) a taxa de destruição de cidades?
Você pode desativar facilmente o feitiço no arquivo spells.ini com as linhas:
Disabled=True
InvalidTreasure=True
; É possível remover um feitiço do jogo adicionando a linha Disabled=True ao nome do feitiço.
; Tais feitiços não podem ser conjurados por jogadores humanos ou IA.
; Nesse caso, o feitiço também deve ser removido das escolhas padrão dos jogadores humanos, bem como do
script de seleção de feitiços inicial da IA e das habilidades de feitiço das unidades.
Portanto, você também pode querer substituir o feitiço 52 em herodata.ini e SDispellingWave em AISSpell.CAS por outra coisa.
Se você hesitar em usar cheats dessa forma, pode simplesmente ajustar o feitiço um pouco no arquivo MODDING.INI, algo como:
; A maior distância que uma IA pode atingir a partir de sua unidade ou cidade mais próxima ao conjurar Onda Dispersora, Tempestade de Fogo, Estase ou Nevasca.
; Defina como -1 para usar o alcance de reconhecimento real da unidade ou cidade.
AIUnitcurseUnitdistance=-1
AIUnitcurseCitydistance=-1
Ajustes na taxa de destruição de cidades podem ser encontrados em MODDING.INI:
; Número de pessoas removidas por turno ao arrasar uma cidade
RazePopShrink=2500
; Número de edifícios removidos por turno ao arrasar uma cidade
RazeBuildingSell=4
No entanto, você ainda precisa pressionar o botão Arrasar.
Thank you, I tested these changes and the game opened normally.
How can I know if they worked?
I created a new save for testing and put 10 Sorcery books in it and chose the Dispel Wave spell as a guaranteed researchable spell.
It appeared in my spellbook to research.
I thought that when I disabled it, it would no longer appear in the wizard creation menu or in the research spellbook.
(December 17th, 2025, 15:25)Simbiozze Wrote: Thank you, I tested these changes and the game opened normally.
How can I know if they worked?
I created a new save for testing and put 10 Sorcery books in it and chose the Dispel Wave spell as a guaranteed researchable spell.
It appeared in my spellbook to research.
I thought that when I disabled it, it would no longer appear in the wizard creation menu or in the research spellbook.
Aha. For the changes in spells.ini to be applied, a new spells.dat file must first be created. To make this happen automatically, the old spells.dat file must be deleted. This is how it works with spells.ini, units.ini and items.ini.
(December 17th, 2025, 15:25)Simbiozze Wrote: Thank you, I tested these changes and the game opened normally.
How can I know if they worked?
I created a new save for testing and put 10 Sorcery books in it and chose the Dispel Wave spell as a guaranteed researchable spell.
It appeared in my spellbook to research.
I thought that when I disabled it, it would no longer appear in the wizard creation menu or in the research spellbook.
Aha. For the changes in spells.ini to be applied, a new spells.dat file must first be created. To make this happen automatically, the old spells.dat file must be deleted. This is how it works with spells.ini, units.ini and items.ini.
I followed the step-by-step instructions as you explained and it worked, the spell disappeared from the list of searchable spells. Thank you very much!
However, I couldn't find the modding.dat file to apply the same change for city destruction. Would it be necessary to search in a specific path within the game folder?
I changed the values to: RazePopShrink=3000
RazeBuildingSell=4
I tested it and it apparently worked, however, if I try to change the RazePopShrink values above 4000 or RazeBuildingSell=8, the game eventually crashes if I try to destroy any city.
(December 18th, 2025, 10:50)Simbiozze Wrote: ...
However, I couldn't find the modding.dat file to apply the same change for city destruction. Would it be necessary to search in a specific path within the game folder?
I changed the values to: RazePopShrink=3000
RazeBuildingSell=4
I tested it and it apparently worked, however, if I try to change the RazePopShrink values above 4000 or RazeBuildingSell=8, the game eventually crashes if I try to destroy any city.
Do you know why this happens?
No. I suspect you've figured out that these values don't work. ... Only Spells.dat, Units.dat and Items.dat exist. Changes in other files are carried out directly.
I have try to use script to make spell that bring a unit back to wizard fortress, but game crash every time I doing so. It does not say what cause the crash either. Does anyone have any clue?
Code:
IF (SP<>SStrategicRecall) THEN { GOTO "NOTSTRATEGICRECALL"; }
FX=GETWIZARDDATA(W,WDFortressX);
FY=GETWIZARDDATA(W,WDFortressY);
FP=GETWIZARDDATA(W,WDFortressP);
DEPLOYED=0;
SEADEPLOY=0;
IF (GETSTAT(TU,AFlying,0)>0)
%OR (GETSTAT(TU,ANoncorporeal,0)>0)
%OR (GETSTAT(TU,AWaterwalking,0)>0)
%OR (GETSTAT(TU,AWindWalking,0)>0)
%OR (GETSTAT(TU,ASailing,0)>0)
THEN {
SEADEPLOY=1;
}
IF (NOFUNITSONTILE(FP,FX,FY)<9) THEN {
SETSTAT(TU,SPlane,1,FP);
SETSTAT(TU,SOLX,1,FX);
SETSTAT(TU,SOLY,1,FY);
GOTO "NOTSTRATEGICRECALL";
} ELSE {
FOR X=FX-1 TO FX+1;
FOR Y=FY-1 TO FY+1;
IF (DEPLOYED>0) THEN { GOTO "CANTDEPLOYED"; }
IF (NOFUNITSONTILE(FP,X,Y)>8) THEN { GOTO "CANTDEPLOYED"; }
IF (GETTERRAIN(X,Y,FP)<LTGrassland)
%AND (SEADEPLOY=1)
THEN {
SETSTAT(TU,SOLX,1,X);
SETSTAT(TU,SOLY,1,Y);
SETSTAT(TU,SPlane,1,FP);
DEPLOYED=1;
} ELSE {
IF (GETTERRAIN(X,Y,FP)>LTGrassland)
%AND ( (GETSTAT(TU,ASailing,0)=0) %OR (GETSTAT(TU,AFlying,0)>0) )
THEN {
SETSTAT(TU,SOLX,1,X);
SETSTAT(TU,SOLY,1,Y);
SETSTAT(TU,SPlane,1,FP);
DEPLOYED=1;
}
}