You can remember the meaning of 发作 with this easy mnemonic:
A patient had chickenpox and people were scared that his break out might spread the disease. He was sent (发) away to stay in a temporary made (作) quarantine room.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.