Here is a small section triggering events using the vars.
Note that actions for v18 are set in the MEd event editor.
Code:
// ***MassAttack***
if past(200) and eq(v9,6) and never() then
set(v18,1)
endif
// ***ShootersInTheHills***
//
if area(27) and lt(v50,0) and not eq(v34,2) or eq(v34,3) and never() then
set(v34,1)
endif
if previous() and waveready() and never() then
wave("ALPH554.wav")
text("Shooters In The Hills!")
endif
//
if area(27) and eq(v50,0) and not eq(v34,1) or eq(v34,3) and never() then
set(v34,2)
endif
if previous() and waveready() and never() then
wave("ALPH554.wav")
text("Shooters In The Hills!")
endif
//
if area(27) and gt(v50,0) and not eq(v34,1) or eq(v34,2) and never() then
set(v34,3)
endif
if previous() and waveready() and never() then
wave("ALPH554.wav")
text("Shooters In The Hills!")
endif