Non-threaded

Forums » Newbie Central » Read Thread

Introduce yourself and get to know the community.

Please help

13 years ago

I am making a game and I have a puzzle with 6 torches. All the torches but one are lit and you must light them all. When one torch is lit/extinguished one or two other torches are lit/extinguished. I have already made a formula for the pattern but when I started writing the pages I realized there will be a TON of them.

Is there a simpler way to do this with advanced variables or advanced scripting? If so, how?

Thank you!

Please help

13 years ago

That's sort of hard to follow... Can you provide greater detail about the problem and what you're trying to do with it?

Please help

13 years ago

Well basically I am trying to avoid a massive amount of pages and devise a formula so the torches will go on or off when their counterpart torches are lit/unlit.

Please help

13 years ago

For example:

You light torch 3, torches 6 and 5 sputter out.

Torch 1: Lit

Torch 2: Lit

Torch 3: Lit

Torch 4: Lit

Torch 5: Unlit

Torch 6: Unlit

Please help

13 years ago

OK, yes - you can have all of this happen on 1 page, using %%VARIABLE%% on the page itself to reflect changes as they happen.

I have to go now, but will check back tomorrow and post more detail then if you still need it.

Please help

13 years ago

Hooray! Thank you so much!

Please help

13 years ago

Basically, set up a VARIABLE for each Torch to track whether it is out or lit. Have your Links or Items or whatever ‘light and unlight’ the torches as needed by changing the Variable Values --- Value 0 = out / Value 1 = lit.

%TORCH1
%TORCH2
%TORCH3
%TORCH4
%TORCH5
%TORCH6

Then set up a page or two to track the changes:

Blah blah blah, you have the following torches Lit:
Torch 1: %%TORCH1%=%0%Out%%%%TORCH1%=%1%Lit%%
Torch 2: %%TORCH2%=%0%Out%%%%TORCH2%=%1%Lit%%
Torch 3: %%TORCH3%=%0%Out%%%%TORCH3%=%1%Lit%%
Torch 4: %%TORCH4%=%0%Out%%%%TORCH4%=%1%Lit%%
Torch 5: %%TORCH5%=%0%Out%%%%TORCH5%=%1%Lit%%
Torch 6: %%TORCH6%=%0%Out%%%%TORCH6%=%1%Lit%%

Try it out and let us know if you have more questions  =)

Please help

13 years ago

You really need to decide if you will return tomorrow or in a couple hours...

Please help

13 years ago

You knucklehead... It IS tomorrow haha!

(I logged back in just to point that out)  ^_^

Goodnight!

Please help

13 years ago

^_^ without my mustache I'm not able to think straight. It's all your fault BZ!

Please help

13 years ago

Hahahaha! Thanks guys.

Please help

13 years ago

Hmmm, I get that I'm supposed to make 6 different variables (TORCH1, TORCH2, etc) and that 0=unlit 1=lit but I don't really get how to make one torch affect another.

Please help

13 years ago

On a page where you have the choice of which Torch to light, set the Links up as a choice for each Choice -

Link1 = "Light Torch 1"
Link2 = "Light Torch 2"
Link3 = "Light Torch 3"
Link4 = "Light Torch 4"
Link5 = "Light Torch 5"
Link6 = "Light Torch 6"

You then set the Link itself to Change the %TORCH Values. If you Light Torch1 for example, the '+' settings could be:

TORCH1 = Reset 1
TORCH3 = Reset 0
TORCH6 = Reset 1

In the above sample, lighting TORCH1 lights Tourch 1, puts out Tourch 3, and lights Torch 6.

You can also restrict the Links to only show when a Torch is actually out. Click the 'show when not available' button on the first page of Link Restrictions (the stop sign) so the Link option still shows, but is not clickable.

If you need something more complicated than the above, then you'll have to use Scripting ':=' on each Link instead of the '+'...

Please help

13 years ago

Uggg, I think I got it but now the torch variables are showing on all the pages.

Please help

12 years ago

That's unexpected... Do you have them set to show on all pages in the Variable Section? If so, turn them off..

Please help

12 years ago

Oops.

Please help

12 years ago

Okay I've figured everything out except how to make the links change from light to unlight. For example I light torch 1, it works. But there is still a link which says light torch 1 which should say light torch 2 and even if It said light torch 2 it would act like light torch 1.

I'm really sorry about all the questions but I'm new and I still don't quite get it.

Please help

12 years ago

No problem,

If I understand the question - you need to set Restrictions on each link where the Value Not = 1. That way, it the torch is lit, it won't let you click on it to light it again. Also, if you are going back to a page more than once, make sure that the "+" values are set (with the Check box) to be usable more than just once in the game...

Please help

12 years ago

Hooray! I finally figured everything out. I changed the puzzle itself a bit but It's good. I'll pm you the link in case you want to see it. And I haven't completed the puzzle yet I'm just showing you I understand.

Now I just have to figure out how to make a link appear when you light all the torches...

Thanks for everything BK!

Please help

12 years ago

No problem  =)

Getting a link to appear can be done by setting the Restriction of it to the value of each Torch = 1.

Please help

12 years ago

I'm wondering who BK is.... :P

Please help

12 years ago

I meant BZ. It was a typo.