Conditional Rooms

Ifrit7th
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
You mean something like the appended file? room4 has an boolean attribute 'warp', in this room you can 'warp home'

Ifrit7th
Ah yes, this is exactly what I was looking for, thanks a lot.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums