Maybe better if you did this
HTML Code:
function onPlayerEnters() {
this.array = {
//Shop Names
{"level1.nw", "level4.nw", "level3.nw"},
//Descriptions
{"Gun Shop", "Electrical Shop", "Adult Stall"}
};
//The index of the shop level in the array
temp.index = this.array[0].index(player.level.name);
//If the entry doesn't exist, don't continue
if (temp.index == -1) return;
this.message_title = this.attay[1][temp.index];
setTimer(0.05);
}