Non-threaded

Forums » Feature Wishing Well » Read Thread

Suggestions for improvements and additions to the site.
This feature was rejected 6/27/2012: Automatically rejected as part of the FWW clean out.

$LINKSTATE

18 years ago

same as itemstate, except applies to links on a given page.

usage:

$LINKSTATE01 --refers to the state of the first link on the page, meaning it cannot be used in a global link script

IF %HEALTH > 100 THEN
$LINKSTATE01 := 1
$LINKSTATE02 := 0
ELSE
$LINKSTATE01 := 1
$LINKSTATE02 := 0

 

opens up doors to more scripting...

$LINKSTATE

18 years ago
This'd be useful. Also make another one that could make a link be visible but not be clickable.

$LINKSTATE

18 years ago
$LINKSTATE = 3 could be that, october.

$LINKSTATE

18 years ago
What would $LINKSTATE = 2 be then?

$LINKSTATE

18 years ago
oh, im stupid, yeah, it should be 2, i cant count lol!

$LINKSTATE

14 years ago

I know alexp isn't here (in other words no +1 to post count for telling me that, sorry guys), but this would be a really good feature should it be implemented. I know there is a system variable called $LINKTEXT as I've seen coloured links in a storygame before and I've used it myself (there is no article for this), so it only makes sense that you can make link restrictions with scripting.

* Actually, I'm gonna start writing an article now regarding $LINKTEXT and $LINKSTATE and just put a note under the $LINKSTATE subheading saying "this feature is not currently available".

$LINKSTATE

14 years ago

At the moment, you can use $LINKTEXT to get rid of a link so you can't click it (this is done by removing all text from a link), however using this method you still have the dot point visible.

I'd also add you can use Zikara's in-text linking method as a way around this, however it's extremely time-consuming.

$LINKSTATE

14 years ago

I don't get it.

Why do it this way when you can just make (%Health > 100) a requirement directly on your link. It just seems redundant to me.

$LINKSTATE

14 years ago

By that I mean can you give an example where you could not do the same thing with the link restrictions.

$LINKSTATE

14 years ago

Let's just say you want entry into a bar, and they'll only let you in if you have certain coloured stickers on your forearm. The three combinations you can gain entry with are: red and blue, purple and yellow, green and yellow stickers. If you want to get into the club with red and blue, you must not have any other colour stickers on except for red and blue. The same goes for the other two entry combinations. Instead of having to make three different links to the same page with different link restrictions, you have the one link and put these conditions for the link to work in by using $LINKSTATE. You can't have multiple different link restrictions without scripting.

That, and it's a matter of convenience in regards to seeing all variable-related events in your storygame in one place (ie. the Scripts tab in the Advanced Editor).

It would also allow you to make a script either disappear completely or just be visible but not clickable depending on different restrictions - for example, if you've never heard of the bar the link won't show, if you've heard of the bar but can't enter the link will show but will not be clickable, and if you've heard of the bar and meet the entry requirements the link will be clickable.

$LINKSTATE

14 years ago

I see. So it allows for a bit more control along with convenience,

$LINKSTATE

14 years ago
You know what. When I was reading this I was prepared to explain how this is doable with the way things currently are, and maybe I'll still explain that if you want when I'm less tired and actually functioning.

But... there are some things that this would help (especially when you start talking about being able to change it from not clickable but still visible) and I think it would be really awesome to do this as well.

$LINKSTATE

14 years ago

As in solo's example above, you can turn multiple links "on" and "off" based on a single variable change with a few lines of text, as opposed to going into every individual link restriction and putting link restrictions on.