Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

[Answered] Using items anywhere

14 years ago
Let's say I have a harmonica item. I "edit item script" with:

IF $DEST = @NONE THEN
$PAGETEXT := $PAGETEXT + " Playing 'Take me out to the old ballgame' on the harmonica."

Now I can use the harmonica anywhere and get the above message added to whatever the page states (which could be varied by adding a conditional statement).

BUT.... every time I use the harmonic a window pops up saying "The item cannot be used here."

Under "Item Effects" there is no choice for "everywhere." Only one location can be chosen to avoid the above window message. The only thing I can choose under "Default effect" is "none." So I get the error message for every use even though the text is added properly. Am I missing something?

I think there should be a choice to use something in any location.

Chuck

[Answered] Using items anywhere

14 years ago
Apparently there is no solution to this problem. In my current story it's no big deal, though I think being able to use an item with different random results anywhere would be a nice feature. At this point, using items can be a choice for any page where it makes logical sense. But that would add silly choices too often. The reader might get sick of seeing "Play the harmonica" on numerous pages. Even so, playing the harmonica might make sense in some circumstances, possibly for humor. "You enter a dark cave and hear strange growling sounds." If the reader has the harmonica, playing it as a choice might result in an interesting humorous consequence.

I still challenge the user community to figure out how to stop the window pop-up with the code I provided in my original post in this thread. Game on!

Chuck