Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Creating Links with Scripting

11 years ago

Hey guys. It's been AGES since I've scripted anything real on this site and I'm definitely 100% rusty. I'm wondering if it's possible to create links with the current architecture. Let's say I have orphaned page ID#5 and I'd like to create a link to that page from every page in the entire storygame but I don't want to manually create a link on every page. Is there a way to do this using the global page script?

@Killa_Robot @BerkaZerka

Creating Links with Scripting

11 years ago

It's not something I have ever done, but yes, If I recall correctly, there is a way to create a link through Scripting alone. I think it would be something similar to how you create Links off Pictures (which Killa knows about).

http://chooseyourstory.com/forums/advanced-editor-forum/message/9678

Variable Item Scripting by Zikara sort of touches on it in the Link Section, but it's currently over my head haha!

Of course these create on-page links, but maybe knowing how to do that would allow you to manipulate the bottom of page links (the same way you can change the Link Text through Scripting)?

Creating Links with Scripting

11 years ago

Yeah, I know how to do on-page links, but I was trying to figure out a way to get a new bottom link.

Creating Links with Scripting

11 years ago

As far as I'm aware, no you can't do something like this. You can highjack pre-existing links, and change their destination, but you can't actually create new links (which is a shame).

If what you want is just a way to access a page from any other page, giving the player an item that would send them to that page would work instead.

Creating Links with Scripting

11 years ago

Yeah, that's what I usually do.

I'm actually kind of glad this is the case, I don't feel so useless haha.