The "activateifused=x" will also work.
The problem is that your states are a jumble. You define your huds, you go to "state=1" and if the "activate=1" is reached, that hud shows, then you return back to "state=1" and the other parts don't ever return back to wait for the "activation" to happen and show the corresponding hud. You have to remember when showing multiple huds at different circumstances with the same key in a script require them laid out in "section states" so you can easily follow where the script should be when an error occurs. In other words, I can see exactly why the first image always shows.
I would have laid out the script similar to the following:
;Artificial Intelligence Script
;Header
desc = Switch Activate (enter pass code)
;Triggers
:state=0:hudreset,hudx=14,hudy=50,hudimagefine=databank\note.png,hudname=note,hudhide=1,hudmake=display
:state=0:hudreset,hudx=14,hudy=50,hudimagefine=databank\note2.png,hudname=note2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=14,hudy=50,hudimagefine=databank\note3.png,hudname=note3,hudhide=1,hudmake=display
:state=0:state=1
:state=1,activated=1:state=6
:state=1,activated=2:state=11
:state=1,activated=3:state=14
:state=6,scancodekeypressed=23:hudshow=note,sound=audiobank\123\page2.wav,etimerstart,state=7
:state=7,etimergreater=500,scancodekeypressed=0:state=8
:state=8,scancodekeypressed=23:hudunshow=note,sound=audiobank\123\page.wav,etimerstart,state=9
:state=9,etimergreater=500,scancodekeypressed=0:state=1
:state=11,scancodekeypressed=23:hudshow=note2,sound=audiobank\123\page2.wav,etimerstart,state=12
:state=12,etimergreater=500,scancodekeypressed=0:state=13
:state=13,scancodekeypressed=23:hudunshow=note2,sound=audiobank\123\page.wav,etimerstart,state=14
:state=14,etimergreater=500,scancodekeypressed=0:state=1
:state=16,scancodekeypressed=23:hudshow=note3,hudunshow=note2,sound=audiobank\123\page2.wav,etimerstart,state=17
:state=17,etimergreater=500,scancodekeypressed=0:state=18
:state=18,scancodekeypressed=23:hudunshow=note3,sound=audiobank\123\page.wav,etimerstart,state=19
:state=19,etimergreater=500,scancodekeypressed=0:state=1
;End of Script
I like to use "etimer" in my scripts, particularly when showing multiple huds on the same key (similar to the map display post I did
here).
There's no problem that can't be solved without applying a little scripting.