I try to have combat start with defending side start with warp reality if city enchanted with specific city enchantment in version 1.5 by put code below into entercombat.cas but thing not go as I want as result end up with defending side of any combat start with Warp Reality already casted instead. Is it bug in entercombat.cas or I coding script wrong? if I code script wrong, how to do it properly?
Code:
A=ATTACKER();
D=DEFENDER();
FOR U=1 TO MAXUNIT();
IF INCOMBAT(U) THEN {
IF ((GetStat(U,SOwner,0))=D) THEN {
IF (CITYENCHANT((CITYONTILE(U)),CEChaosBless)>-1) THEN {
SETCOMBATGLOBAL(D,CGWarpReality,1,1)
}
}
}
NEXT;
Edited: I think I found reason. CityOnTile return zero I'd end up trigger thing everywhere. I have to add condition if C>0 so that it would not trigger on no city.
It seems like the Tactician and Astrologer retorts are not being reported by the combat info display in battle. Save attached, test by entering the Sorcery node nearby.
(June 30th, 2023, 09:27)Anskiy Wrote: It seems like the Tactician and Astrologer retorts are not being reported by the combat info display in battle. Save attached, test by entering the Sorcery node nearby.
Confirmed and fixed for the next update. The script had W in the "Addabilityline" for retorts instead of J.
AddAbilityLine in DisInfo.cas does not recognize I value (display ID) higher than 38. I try to find way to add more of it (39,40,41) but I could not found where they are. and it seem to not exist in modding.ini.