// Make Greater Command into a party-friendly spell COPY_EXISTING ~SPPR512.SPL~ ~override~ // Greater Command PATCH_IF (%SOURCE_SIZE% > 0x71) THEN BEGIN // file size sanity check READ_LONG 0x64 ab_off READ_SHORT 0x68 ab_num FOR(i=0; i<ab_num; i+=1) BEGIN // cycle through all headers WRITE_SHORT (ab_off+i*0x28+0x26) 159 // use INAREANP.PRO for the projectile END END // end file size sanity check BUT_ONLY_IF_IT_CHANGES
OTOH, should we opt to make it into an area effect spell at all levels, the code would be:
// Make Greater Command into an area effect spell COPY_EXISTING ~SPPR512.SPL~ ~override~ // Greater Command PATCH_IF (%SOURCE_SIZE% > 0x71) THEN BEGIN // file size sanity check READ_LONG 0x64 ab_off READ_SHORT 0x68 ab_num FOR(i=0; i<ab_num; i+=1) BEGIN // cycle through all headers WRITE_SHORT (ab_off+i*0x28+0x26) 155 // use SPKLARCH.PRO for the projectile END END // end file size sanity check BUT_ONLY_IF_IT_CHANGES












