The place to discuss the ADRIFT Interactive Fiction toolkit

Player Char - Defining and applying attributes

Want to just chat amongst yourselves? Then this is the place when IF and ADRIFT are not the topic. Please keep your posts family friendly.

Postby felix caitlan » Thu Jul 29, 2004 7:07 am

i can't seem to figure this out. i've puzzled around w/ it for damn near long enough that i'm more than slightly frustrated. No doubt the answer is simple. However, i'm lost.

My question concerns the player character. If one was to leave both name and sex as promt'd, how would one later define attributes for said things? ie. a female char. might start the game wearing a dress, a male might be in pants. This is just an example of course, but how would the application of such a thing come about?

My suspicion is variables. And interaction w/ the pre-defined commands. i just can't figure it out, though. Please, someone, show me how stupid i'm being.
i just make it all up as i go along. - e.e.cummings
felix caitlan
Posts: 2
Joined: Fri Apr 16, 2004 2:37 pm

Postby Mystery » Thu Jul 29, 2004 2:58 pm

I have added both a written and technical demo that you can download from O.A.R.S - See Tutorials.

Select to prompt for the player and gender. Create the clothing for both male and female. Now create a the following tasks and leave all message display boxes blank:

#It's a girl
Restriction - Player must be of gender female
Action - Move dress (or whichever clothing you made for her) to worn by player

#It's a boy
Restriction - Player must be of gender Male
Action - Move suit (or whichever clothing you made for him) to worn by player

Now create a third task as follows:

#Run Gender
Actions - Execute Task It's a girl
Actions - Execute task It's a boy

Now create an event that starts immediately and lasts exactly 1 and 1 turns. Make it available in the start room. Go to the advanced tab and have it execute task #Run Gender

Edited By Mystery on 1091114741
User avatar
Posts: 4766
Joined: Sun Jun 23, 2002 4:32 pm
Location: Virginia Beach, Virginia USA
Points: 10

Return to Drifting Off-Topic

Who is online

Users browsing this forum: No registered users and 4 guests