Replace Object with another object.

For help with creating games using Quest

Moderators: Pertex, sgreig, Cryophile, jaynabonne, Alex

Posts: 1
Joined: Fri Nov 05, 2010 12:36 am

Replace Object with another object.

Postby Forretress » Fri Nov 05, 2010 12:48 am

I'm new to this, but I can't find this addressed in the forums. When the player types "step on tile," what should happen is a door stops being on fire and allows passage to another room. I thought I could replace "door on fire" with a normal "front door" and have the direction unlocked, but I can't seem to accomplish this. I don't want the player to still see the "door on fire," because it wouldn't be on fire anymore.

I have the object "tile," which is in another room, a "door on fire," and a "front door."

Any help is appreciated.

Posts: 38
Joined: Sun Feb 01, 2009 2:31 pm

Re: Replace Object with another object.

Postby Tomsa » Thu Nov 11, 2010 9:55 am

First, put 'door on fire' and 'front door' in the same room.

Make 'front door' unavailable (under the advanced tab of the object).

Create the verb 'step on' for the object 'tile', or make the command 'step on #object#, then run script as follows:

Print message "As you step on the tile, the door is no longer on fire, granting you passage further into the dungeon...", make 'door on fire' unavailable, make 'front door' available (accessible) and unlock the exit (remember, from "dungeon room 1 to direction south", not from "dungeon room 1 to dungeon room 2", otherwise it won't work).

Hope this helps.

Return to “Quest Forum”

Who is online

Users browsing this forum: No registered users and 5 guests