Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Getting to a new page

14 years ago

Alright guys, I got a lot of writing done today, but now my head kinda hurts and I'm not thinking straight lol. Basically, my question is: How do you get to a page if you click on a certain link. Like, not in that page's link script, but later on. I saw 3J said something about always talk in specifics when asking specific questions, so here is a little theme from my story I have to give away. In my story, a guy makes you an offer to become powerful alongside him, if you say yes it branches into an entirely different path, but if you say no it will re-merge into the same path, but I would like something special to happen later on the story line if you clicked refuse. I was thinking something like this in the link script of the page that would otherwise lead you to the normal response.

IF X THEN

$DEST := @PRANDOMNUMBER

where, the X is something along the lines of "If you visited this page". I know I kinda rambled here and I'm probably not making much sense, but if anyone can help me that would be great.

Getting to a new page

14 years ago

Make a variable called %CHOICE. When you click refuse set %CHOICE to 1 in the link script. I think this is known as a "switchboard script" or something along those lines. Then when it comes to the point where the event happens if you refused, then have the script:

IF %CHOICE = 1 THEN
   $DEST := @PXX

Your script was just about spot on - all you have to do is make the %CHOICE variable so the system knows you made that refusal earlier on.

Getting to a new page

14 years ago

epic, thanks dude.

14 years ago

After all that work i did with you, you couldnt figure that out on your own? i failed. :'(

14 years ago

What work? You mean working with random scripts. Oh ya, that would definately help -_-

14 years ago

All scripting knoledge is related, we talked about all kinds of variables. $itemstate, and $DEST.

14 years ago

LOL, I fail to see how $ITEMSTATE helps with this, but ok

I forgot we talked about itemstate, i was mostly talking to Sindri about that lol. By the time I was at $DEST I figured it out and was running various things through for approval, you and Ziki did iron out a few of the wrinkles. While I'm on the subject, big thanks to Sindri for  helping me with my scripting. Thankfully he was online while I was reading the more advanced articles and he helped me through my problems.

14 years ago

Yay! I helped! But seriously though, I'm glad you're getting a better grasp of this now...you are getting a better grasp of it now, aren't you?

14 years ago

yup yup yup

14 years ago

Sindri gave me some realy good advice as well.

Getting to a new page

14 years ago
Just changing it back.

Getting to a new page

14 years ago
Great solution, October.

Getting to a new page

14 years ago

For now, I'm just using the choice variable in a variable restriction on one of the pages, but chances are I'll be using your script solution later in the story and chances are in future stories as well. Thanks again.