PUSH
//Armor March
ORG $1538C
jumpToHack(ArmorMarchSkill) //set or unset a bit in the debuff entries to give mov to units
POP
#define ArmorMarchBit "(8*7)+1" //8*byte + bit of the debuff table to use
#define TransmuteBit "(8*7)+3" //8*byte + bit of the debuff table to use
ALIGN 4
ArmorMarchList:
BYTE Knight Knight_F General General_F GreatKnight GreatKnight_F 0
ALIGN 4
ArmorMarchSkill: //set a bit in the debuff table's entry for the refreshed unit
#incbin "armormarchskill.dmp"
POIN AuraSkillCheck
WORD ArmorMarchID
//WORD DebuffTable
WORD ArmorMarchBit
WORD TransmuteBit
WORD 8 //size of a debuff table entry
POIN SkillTester
POIN ArmorMarchList //list of classes that should be affected by armor march
POIN IndoorTerrainList
POIN ForagerList
WORD KeepUpID
WORD IndoorMarchID
WORD NatureRushID
I commented out the WORD DebuffTable line, and it could assemble properly. But then neither Transmute nor Armor March work now. They’re practically dummy skills now. Also, I separated TomeBreaker and Tomefaire into the 3 magic types, but only “LightBreaker” works.