Or rather, put this script in where you want the room change to be triggered (e.g. "Any click on hotspot", although I wouldn't recommand that
)
Code: ags
As easy as pie. Easy pie.

if (GetGlobalInt(1)==1) //your conditions
player.ChangeRoom(2,5,17); //Put the room change here
else
player.Say("I can't go there right now!"); //what you want to happen if the conditions are not met
As easy as pie. Easy pie.