SPCOL for collisions; use the in game manual. Then add button checking. If button a is pressed then execute dialog or other actions.