Just Adventure News : Addon: Endless Space: Disharmony will hit Steam on 26th of June Promotion: Her Interactive: Father's Day Weekend Sale Beta: Final Fantasy XIV: A Realm Reborn Beta Phase 3 Starts Today On PS3 & PC Press Release: First-ever early gameplay footage released for World of Diving Press Release: Master Reboot is now on Steam Greenlight! Press Release: MAGRUNNER DARK PULSE, a Lovecraftian screenshot and an exclusive early access Press Release: NeocoreGames Announces The Incredible Adventures of Van Helsing II Press Release: The Age Of Free-To-Play Has Dawned On Rift Gold: Jack Haunt - Pulp Mystery Point and Click Adventure released Press Release: DICE Heralds The Return Of Mirror's Edge
Home - Forum Home
Welcome Guest, please Login or Register!
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Topic: IF7 "if" Help

    Page 1

8 JAN 2010 at 10:18pm

Xygatrix

Intergalactic Janitor
Intergalactic Janitor



Posts : 2
Joined: 8 JAN 2010

Status : Online
Alright, after a dream sequence in a meadow, my character is moved to a cottage. I've been having some trouble getting some things to work, especially an "if" phrase. Basic code I was trying to use was:


The Cottage is a room. A bed is in the cottage.

If player is in the Cottage for the first time:
    say "You wake up in a strange room."
    Player is in the bed.


That told me that the words "if the player is in the cottage for the first time" didn't work as a phrase, so I changed it to this:


The Cottage is a room. "[if player is in the cottage for the first time] You wake up in a strange room." A bed is in the cottage.


That worked for me, but I still want the character to be in the bed the first time he enters the cottage (because he is moved there after a dream scene.) Is there any way to do this?

Profile Search


14 JAN 2010 at 1:13am

Xygatrix

Intergalactic Janitor
Intergalactic Janitor



Posts : 2
Joined: 8 JAN 2010

Status : Online
Seriously? No one?

Profile Search
10 JUN 2011 at 6:46pm

mike111

Intergalactic Janitor
Intergalactic Janitor



Posts : 6
Joined: 9 JUN 2011

Status : Online
This is simple.

The Cottage is a room. A bed is in the cottage.

If player is in the Cottage for the first time:
    say "You wake up in a strange room.";
    now Player is in the bed.;

copy exactly.


Profile Search

    Page 1

Jump to:
0 Members Subscribed To This Topic