Page 2 of 4

PostPosted: Fri Apr 22, 2011 7:30 pm
by KFAdrift
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"?

PostPosted: Sat Apr 23, 2011 2:03 am
by BlueMaxima
KFAdrift wrote:Should I add "How to make a maze"?

Queue David in 3...2...1...

PostPosted: Sat Apr 23, 2011 4:25 am
by MikeDesert
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)

Re: Wiki Manual

PostPosted: Thu Apr 28, 2011 11:19 am
by Kennedy
How does the PropertyValue function work? Or more precisely what values are acceptable for propertykey?

Re: Wiki Manual

PostPosted: Thu Apr 28, 2011 11:32 am
by Campbell
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.

Re: Wiki Manual

PostPosted: Thu Jun 23, 2011 1:45 am
by nevermore
I love this Wiki already.

Re: Wiki Manual

PostPosted: Thu Jun 23, 2011 4:00 pm
by ralphmerridew
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.

Re: Wiki Manual

PostPosted: Mon Sep 19, 2011 1:55 am
by Lakanar
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

Re: Wiki Manual

PostPosted: Sat Oct 22, 2011 5:26 pm
by Mystery
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.

Re: Wiki Manual

PostPosted: Wed Nov 23, 2011 8:49 pm
by Dejaduo
Is a Wiki Manual a Wikanual? Or a Maniki? Wikanual sounds like a flower, but Maniki just sounds wrong somehow. On so many levels.

Re: Wiki Manual

PostPosted: Wed Nov 23, 2011 9:44 pm
by Campbell
Mankini? Ooh-err...

Re: Wiki Manual

PostPosted: Mon Dec 12, 2011 4:05 pm
by RenatoDias
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.

Re: Wiki Manual

PostPosted: Mon Dec 12, 2011 4:11 pm
by Campbell
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.

Re: Wiki Manual

PostPosted: Mon Dec 12, 2011 4:57 pm
by RenatoDias
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.

Re: Wiki Manual

PostPosted: Mon Dec 12, 2011 4:59 pm
by Campbell
Have you logged in?