Rename/create new event based on the previous event

Hi Francois.

In my raw file, I have event markers called 'audio' following event markers 'response_xx' where xx changes based on 5 different conditions. I need to either create new event markers "audio_xx" or rename the audio markers to "audio_xx" based on the condition in the preceding response marker.

Will combine stimulus process be helpful in my case? or please help me with any other means of doing this.

Yes, I think the process "Combine stim/response" should allow you to do this.
With something like:

ignore, audio_01, response_01, audio
ignore, audio_02, response_02, audio
ignore, audio_03, response_03, audio
ignore, audio_04, response_04, audio
ignore, audio_05, response_05, audio

And fixing carefully the maximum delay between response_xx and audio.

Thank you for the response. One issue I faced while performing the combine stimulus method is the time between the response and the audio events was not constant in all the trials. So I managed to do a workaround by importing the raw file into Matlab, adding the new markers by computing time from the previous markers, and then using bst_save to add the raw file back into the db.

The manual way works as well, indeed.

If you need help with scripting your analysis in Brainstorm, see this tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Example:_Editing_events