ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

ADRIFT Wiki

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Postby KFAdrift » Fri Apr 22, 2011 7:30 pm

DCBSupafly wrote:
MikeDesert wrote:I notice there's a section called "How to make a lamp that runs out of batteries". it's just a place holder without any directions.
I beg of you not to fill it in. I never ever want to play another text adventure where my lamp runs out of batteries. Thank you!

lol. out loud. in public.

Should I add "How to make a maze"?
KF
Staring harder at the screen doesn't give any more inspiration
User avatar
KFAdrift
Site Admin
 
Posts: 4882
Joined: Sun Jun 23, 2002 4:42 pm
Location: Surrey, southern England

Postby BlueMaxima » Sat Apr 23, 2011 2:03 am

KFAdrift wrote:Should I add "How to make a maze"?

Queue David in 3...2...1...
User avatar
BlueMaxima
 
Posts: 174
Joined: Fri May 14, 2010 6:07 am

Postby MikeDesert » Sat Apr 23, 2011 4:25 am

KFAdrift wrote:
DCBSupafly wrote:
MikeDesert wrote:I notice there's a section called "How to make a lamp that runs out of batteries". it's just a place holder without any directions.
I beg of you not to fill it in. I never ever want to play another text adventure where my lamp runs out of batteries. Thank you!

lol. out loud. in public.

Should I add "How to make a maze"?

haha...the reason I never ever finished Colossal Cave Adventure or Madness and the Minotaur (my avatar)
Last place winner of Adrift 2011 Ectocomp
User avatar
MikeDesert
 
Posts: 138
Joined: Wed Mar 30, 2011 2:23 am
Location: Oakland

Re: Wiki Manual

Postby Kennedy » Thu Apr 28, 2011 11:19 am

How does the PropertyValue function work? Or more precisely what values are acceptable for propertykey?
Kennedy
 
Posts: 144
Joined: Tue Apr 29, 2003 7:12 pm
Location: Oregon

Re: Wiki Manual

Postby Campbell » Thu Apr 28, 2011 11:32 am

Kennedy wrote:How does the PropertyValue function work? Or more precisely what values are acceptable for propertykey?

The easiest way to see is to drag a property onto a textbox. It will then auto-populate the property key. You can see what the keys are on all items by selecting Settings > General > Show Keys on Edit forms.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4570
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Wiki Manual

Postby nevermore » Thu Jun 23, 2011 1:45 am

I love this Wiki already.
User avatar
nevermore
 
Posts: 13
Joined: Sat Jun 11, 2011 1:12 am
Location: West Virginia, USA

Re: Wiki Manual

Postby ralphmerridew » Thu Jun 23, 2011 4:00 pm

Outline of how to do the lamp:

You'll need two lamp objects (one for the dark lamp and one for the lit one).

The dark lamp should have two properties: "Battery_Life" (number) and "Is_on" (selection)
Battery_life should have a positive initial value. Is_on should be false. The dark lamp should be somewhere the player can find it and the lit one should be out of play.

Have an event that starts immediately, lasts one turn, restarts immediately on finish, and runs task "# Decrement Battery" on completion.

System task "# Decrement Battery".
It has one condition (Dark lamp has property is_on true).
It has two actions:
1) Decrease Battery_Life of dark_lamp by one.
2) Run task "# Check for exhausted lamp"

System task "# Check for exhausted lamp" has one condition (Battery_life of dark_lamp must be <= 0)
Actions are:
1) Run task "# Announce lamp going out"
2) Set Is_on of dark_lamp to false
3) Exchange locations of lit_lamp and dark_lamp.
4) Set Battery_life of dark_lamp to 0. (Sanity check)

System task "# Announce lamp going out" has one condition (lit_lamp must be visible to player)
It should print appropriate text.

Specific task "Turn on <dark_lamp>" with condition battery_life of dark_lamp > 0:
Print appropriate text.
Actions:
1) Set is_on of dark_lamp to true.
2) Exchange locations of dark_lamp and lit_lamp.

Specific task "Turn off <lit_lamp>"
Print appropriate text; set is_on to false; exchange locations.

Specific task "Turn on <dark_lamp>" with condition Battery_life <= 0.
Print appropriate text.

Specific task "Turn off <dark_lamp>"
Print appropriate text.

Specific task "Turn on <lit_lamp>".
Print appropriate text.

Optionally, add some system task like "# Announce low battery of xx", with two conditions (lit lamp visible to player and battery_life of dark_lamp == xx), that print appropriate text; have task "# Decrement battery" call them as well.

While I don't recommend the specific example of a lamp whose batteries run out, knowing how to manually implement timers is useful.
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
ralphmerridew
 
Posts: 2506
Joined: Fri Dec 13, 2002 11:56 pm
Location: Missouri

Re: Wiki Manual

Postby Lakanar » Mon Sep 19, 2011 1:55 am

I'm new to Adrift and I'm completely lost on arrays and how you even go about using them, along with most other variables. Can you guys update the Wiki with a more in depth tutorial.
Thank you
Lakanar
 
Posts: 4
Joined: Sun Sep 18, 2011 3:06 pm

Re: Wiki Manual

Postby Mystery » Sat Oct 22, 2011 5:26 pm

If anyone has any contributions they would like to have added to the Wiki, but do not know how or would rather have someone else add it, please send it to me via pm.

If you are a person who knows how to use the Wiki and are willing to submit things for users who don't know how, please add something in your signature so people will know they can send their WIki submissions to you as well.

If you have a submission, please remember that it is for general public use and should be written as 'informational'. Please specifically specify credit information, otherwise it will be omitted.
~Myst~
User avatar
Mystery
Moderator
 
Posts: 4765
Joined: Sun Jun 23, 2002 4:32 pm
Location: Virginia Beach, Virginia USA

Re: Wiki Manual

Postby Dejaduo » Wed Nov 23, 2011 8:49 pm

Is a Wiki Manual a Wikanual? Or a Maniki? Wikanual sounds like a flower, but Maniki just sounds wrong somehow. On so many levels.
User avatar
Dejaduo
 
Posts: 53
Joined: Wed Apr 13, 2011 3:20 pm
Location: California

Re: Wiki Manual

Postby Campbell » Wed Nov 23, 2011 9:44 pm

Mankini? Ooh-err...
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4570
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Wiki Manual

Postby RenatoDias » Mon Dec 12, 2011 4:05 pm

Great, just joined in the wiki and have already been blocked, didn't even edit it yet. Or it's a prevention method for new users?
I wanted to post a good tutorial on the wiki, but I can't edit it.
RenatoDias
 
Posts: 44
Joined: Sat Dec 03, 2011 10:56 pm

Re: Wiki Manual

Postby Campbell » Mon Dec 12, 2011 4:11 pm

Really? What message do you get? You're the first user to request an account since I added a new layer of protection as there was too much vandalism.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4570
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Wiki Manual

Postby RenatoDias » Mon Dec 12, 2011 4:57 pm

this:
You do not have permission to edit this page, for the following reason:

Your username or IP address has been blocked.

The block was made by Campbell. The reason given is Inserting nonsense/gibberish into pages.

Start of block: 10:28, 17 October 2011
Expiry of block: infinite
Intended blockee: Anonymous

You can contact Campbell or another administrator to discuss the block. You cannot use the 'e-mail this user' feature unless a valid e-mail address is specified in your account preferences and you have not been blocked from using it. Your current IP address is 189.51.216.63, and the block ID is #10. Please include all above details in any queries you make.
RenatoDias
 
Posts: 44
Joined: Sat Dec 03, 2011 10:56 pm

Re: Wiki Manual

Postby Campbell » Mon Dec 12, 2011 4:59 pm

Have you logged in?
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4570
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

PreviousNext

Return to ADRIFT 5.0

Who is online

Users browsing this forum: Google [Bot] and 4 guests