Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

An Essential Script

18 years ago

Alright, i do not believe i have released this in my articles, however, i very much plan to add this in, in the next article:

For those of you who want to save page links, for example, the user was taken to a battle scene, and now you want to return to the page they were at, but the user could have been in many places for the battle to occur, here is a simple link script that will help you out:

 

Scenario (for explanation):

Player is walking around in forest, all of a sudden he encounters a flesh eating monkey. He attacks the flesh eating monkey and eventually kills it. He then continues on with his journey through the forest.

Adv Editor:

Youve got a ton of pages that encompass the forest, in ANY one of these pages, the encounter with the monkey could occur. Problem: you don't know how to make the user return to the place he had been before the attack because there are multiple places the player could have been.

So, on the page that the link takes the user to the battle, so the pagewhere the user is in the forest (the page that you want the user to return to) put this in the link script:

%LASTPAGEID := $PAGEID

And on the page that user leaves the battle, so the page that you want the user to click the link to return to the forest, in that link script, put this:

$DEST := "@P" + %LASTPAGEID

 

So that will make the destinationof that link take you back to where you were before the battle, the same page where you had previously been.

I hope this helps you with your storygame making :)

An Essential Script

18 years ago
That's awesome!

An Essential Script

18 years ago
I thought of that in my head, please let me know if ihave the syntax right lol, in principle it works, but you know how it is with computers lol

An Essential Script

18 years ago
Yep, tested it, and it worked just fine. Just have to make sure to make a variable named %LASTPAGEID

An Essential Script

18 years ago
you dont necessarily need %LASTPAGEID, it could %FLESHEATINGMONKEY and it still would have the same purpose :P but i think you know that already :P im just clarifying for anybody else.

An Essential Script

18 years ago
YOU GENIUS SOLO! THAT'S WHAT I MEANT BY BOOKMARKING! YOU BLOODY LEGEND!

And also, thanks for helping me out a bit.

An Essential Script

18 years ago

THATS what you meant, THAT!!! omg i didnt understand that, jeez, im sorry october...  i guess its a good thing i released this, secret... :P as soon as i did lol

An Essential Script

18 years ago

I need a name for this kind of script, somehting that we can call it by...

bookmarking is a little tooo... book like... i dunno, i need something related to scripting and links, not books... its hard to explain... lol,

An Essential Script

18 years ago
I just thought bookmarking because it was keeping a page there so you could go back to it. I don't know any other name really.. I'll try think of some though.

An Essential Script

18 years ago
How about... "Page Recall" feature? Or perhaps "Backtracking"?

An Essential Script

18 years ago
Page recall, backtracking, i like both of them, now i dont know which one to pick :P lol, before i couldnt think of a word, now i cant choose between two :P and sorry if i sound...hmm.. i dunno authoritive, (wrong word) you can pick the word to use, i just one for the article i am writing... :) which one do you guys like?

An Essential Script

18 years ago
I really think bookmarking is good, but if we were to choose one of tsmpaul's suggestions, I would go with Page Recalls. Backtracking might be used for some new previous page thing in scripting in the future so I wouldn't use it.

An Essential Script

18 years ago

Okay, its between Page Recalls and Bookmarking.

Poll for you guys:

Page Recalls 1
Bookmarking 1

An Essential Script

18 years ago

Page Recalls

PS GO BLOODSUCKING EFFING MONKEYS! YEEHAW!

An Essential Script

18 years ago

Page Recalls 2
Bookmarking 1

haha im not giving up on those monkeys until i see em in a game of yours :P:P

An Essential Script

18 years ago

Danm straight

oh and I vote for page recalls.

An Essential Script

18 years ago
yea, i accounted that..

An Essential Script

18 years ago

Trying to trick you into givin it another vote.. but SHHHH you might still fall for it.

An Essential Script

18 years ago
It's your choice Solo. You only have to listen to our opinions, not base their name on it. Just call it Page Recalling.. or bookmarking.

An Essential Script

18 years ago
Either "Recall script" or "Page recall script".

An Essential Script

18 years ago
Another thast six more votes for Page Recall! Thanks Solo!

An Essential Script

18 years ago
Alright, alright lol, i just didnt want to seem un-democratic/dictatorial in choosing these terms... okay, so it seems Page Recall is what i will call it :)

An Essential Script

18 years ago

BAHAHAHAHAH! MY ALTER ACCOUNT MADGLEE GOT ME ANOTHER VOTE FOR PAGE RECALL.

whoops was  isposed to say that...

An Essential Script

18 years ago
ahha, that was actually quite funny.

An Essential Script

18 years ago
hehehe. Hey, just so you guys all know, this script also works quite nicely as in item script.

The reason you'd do this is if you want to be able to use an item, then have a bunch of choices from that use page to some other stuff, and then go back to before you used the item.

So just put $LASTPAGEID := %PAGEID in the item script, and then the other part in the link script.

An Essential Script

18 years ago
Oops. %LASTPAGEID := $PAGEID, that is

An Essential Script

18 years ago
lol, and i will also include this in my advanced scripting article, with more examples and scenarios on how it can be used :)

An Essential Script

18 years ago
cool! Hustle :P