Should I add "How to make a maze"?DCBSupafly wrote:lol. out loud. in public.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!
ADRIFT Wiki
KF
Staring harder at the screen doesn't give any more inspiration
Staring harder at the screen doesn't give any more inspiration
-
- Posts: 174
- Joined: Fri May 14, 2010 7:07 am
- Points: 10
- MikeDesert
- Posts: 138
- Joined: Wed Mar 30, 2011 3:23 am
- Points: 10
- Location: Oakland
- Contact:
haha...the reason I never ever finished Colossal Cave Adventure or Madness and the Minotaur (my avatar)KFAdrift wrote:Should I add "How to make a maze"?DCBSupafly wrote:lol. out loud. in public.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!
Last place winner of Adrift 2011 Ectocomp
Re: Wiki Manual
How does the PropertyValue function work? Or more precisely what values are acceptable for propertykey?
- Campbell
- Site Admin
- Posts: 4734
- Joined: Sun Jun 23, 2002 12:05 pm
- Points: 0
- Location: Edinburgh, Scotland
- Contact:
Re: Wiki Manual
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.Kennedy wrote:How does the PropertyValue function work? Or more precisely what values are acceptable for propertykey?
ADRIFT Developer developer.
Re: Wiki Manual
I love this Wiki already.
-
- Posts: 2605
- Joined: Fri Dec 13, 2002 11:56 pm
- Points: 10
- Location: Missouri
- Contact:
Re: Wiki Manual
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.
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
Re: Wiki Manual
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
Thank you
- Mystery
- Moderator
- Posts: 4766
- Joined: Sun Jun 23, 2002 5:32 pm
- Points: 10
- Location: Virginia Beach, Virginia USA
Re: Wiki Manual
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.
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~
Re: Wiki Manual
Is a Wiki Manual a Wikanual? Or a Maniki? Wikanual sounds like a flower, but Maniki just sounds wrong somehow. On so many levels.
-
- Posts: 127
- Joined: Sat Dec 03, 2011 10:56 pm
- Points: 13
Re: Wiki Manual
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.
I wanted to post a good tutorial on the wiki, but I can't edit it.
My gamedev blog: https://gamedev-ad.blogspot.com
- Campbell
- Site Admin
- Posts: 4734
- Joined: Sun Jun 23, 2002 12:05 pm
- Points: 0
- Location: Edinburgh, Scotland
- Contact:
Re: Wiki Manual
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.
-
- Posts: 127
- Joined: Sat Dec 03, 2011 10:56 pm
- Points: 13
Re: Wiki Manual
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.
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.
My gamedev blog: https://gamedev-ad.blogspot.com