The number before AddXPWorthOnce() is part of the line you have to add to ACTION.IDS. It is the ID the game uses internally for the script action. Line number doesn't matter. You can add it anywhere into the file. The line number mentioned by the installation error referred to the script file of the mod where the error occurred.
I think it should work now. Thank you so much for the help!