Conditional Rooms

Ifrit7th
09 Oct 2011, 17:28
Hi, I just started coding with Quest a few days ago and I have to say it's very versatile and fun to work with. I do have one issue I'm scratching my head over though; for a game I'm working on I intend there to be a 'warp home' feature that teleports you back to your home base. However, I don't want the teleport to work everywhere, so is there a way I can specify with an expression for a script to check against the current room's attributes, rather then a specific room?

Pertex
10 Oct 2011, 07:27
You mean something like the appended file? room4 has an boolean attribute 'warp', in this room you can 'warp home'

Ifrit7th
10 Oct 2011, 14:18
Ah yes, this is exactly what I was looking for, thanks a lot.