Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Link restrictions?

10 years ago

(I'm aware Fergie wrote an article about this, but I  don't think she answered my question)

How does one make it so that once you choose a link from a certain page, and return to said page, all the other links are unavailable and there's only one link to somewhere else?

Link restrictions?

9 years ago

Let me try to clarify this to make sure I know what you're trying to do. Let's say the scene is:

You're in your house. What do you want to do?

1. Go play video games.
2. Go write a story.
3. Get a snack.
4. Go bone your girlfriend.
5. Go to bed.

So, you go do one of those things and it tires your character out, so that after you go back to that page, the only link remaining would be "go to bed" because you need to sleep. Is that what you intend to do? If not, tell me what I got wrong.

Link restrictions?

9 years ago

That's exactly what I intend to do. (sorry, momentarily drifted off)

Link restrictions?

9 years ago

Ok. Then, basically, do what Tans said. Create a variable, like "TIME," "ENERGY," or whatever. Make each link either increase or decrease the value of that variable. You also need to use the stop sign to set restrictions. Let's say the restriction is that TIME must equal 1 for you to access every link besides "Go to bed" which would have no restrictions in this scenario. 

Let's say TIME is at 1 before you click any of the links and using a link will subtract 1 from that variable. (You need to use the plus symbol to do this.) We'll say I decided to go write a story, so I clicked that link and TIME was reduced to 0. Now, when I go back, the only link I can access is "Go to bed." 

(Alternatively, you could set up the restriction of "TIME = 0" for "Go to bed" so I could only sleep after I tired myself out.) Clear enough?

 

Link restrictions?

9 years ago

Not totally sure what you mean, but I'm pretty sure I found a workaround. Thank you, Kiel.

Link restrictions?

9 years ago

Np, but what part are you unsure about?

Link restrictions?

9 years ago

I'm so genuinely exhausted I can't form full thoughts. I'll get back to you.

EDIT: It's scripting and pagedest.

Link restrictions?

9 years ago

You don't need either to do what you want. Literally just clicking some buttons and inputting numbers. Going step by step-- create the Variable you want (Following Kiel, let's use 'TIME') Go to the button that says 'variables' and futz with that as you wish. Now, make a bunch of options (random things on the top of my head-- don't ask)--

1. Smoke weed

2. Eat turkey breast

3. Write Storygame

Now, there will be a Plus/minus sign on the options panel once you make the choices. On each choice, click the button to add or subtract TIME by whichever numbers: say 'Smoke Weed' will give you -1 time while the 'eat turkey breast' option is only -3, while 'Write Storygame' will be -5. Now, click the stop-sign by 'Smoke Weed' and select 'variable restrictions', then set it so that TIME must be between 1 and 6 to show. Do the same for the other options but with different numbers (not necessarily necessary). 

Mattering on which numbers you input, you might end up that 'Write Story game' will make the option to 'eat turkey breast' disappear when you get back to that page, but 'Smoke weed' will still be there because it's only -1 TIME (apparently TIME in my example started at 6 with a limit of 0)

Dig it? I'm bad at explaining stuff but hopefully between this and Kiel you can figure it out.

Link restrictions?

9 years ago

Make some variables that go up mattering on what action you do, and set 'restrictions' (it's a stop sign in the advanced editor) on all the choices.

Link restrictions?

9 years ago

@Malkalack