You need to use an on text event then. Note, you can use the * wildcard in your event, allowing you to use if statements such as "if ($2 == add) ..." etc
When the trigger is made you want to use /writeini to write to the specific section with your item and your value.
Use /help /writeini for reference.