To modify the value of the object, select the specific object and double click on the trigger in the wizard. Here you can change the action to change the state of and select the object from the drop down list. Then choose the built in states from the drop down list and select the event with respect to the object. After that click on the show conditions and click on add icon. This opens the add trigger condition window. Then select the variable and the operator as equal to and set the value to true. Click ok twice to save the changes.