Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - toast eating fiend

#1
My script throws this error during runtime:
Error: prepare_script: error -18 (no such function in script) trying to run 'globalfunction' (Room 1)
[ACI version 3.12.1115]

I've defined this global function in GlobalScript.asc, and imported it in GlobalScript.ash.

When I try to call this function from within the room script, it works fine, but when I call it as an Event from the Properties Window, it gives me the above error.

Is there any way to import global functions for use in events?
#2
For those of us lacking the pure determination and self-discipline - and stubborness - to insist on finishing each game completely on our own: What do you all think of progressive hints, in the style of UHS hints and Infocom's Invisiclues? How much do you prefer them to walkthroughs, if at all?

The proprietary nature of existing systems makes it rather difficult for such hints to be provided for freeware adventure games. Of course, a workaround can always be done through hyperlinks, but this tends to be rather inconvenient and messy.

So, I've been working on a solution: collapsible outlines, implemented in a single HTML page through Javascript's Document Object Model. It's based on Boutell.com's script. The idea is that a) no one would need to download a program specifically for these hints; b) it would - hopefully - work across platforms (naturally, though, this list is limited to machines that can run adventure games); and c) it avoids in-game hints that promote over-reliance.

(Unordered List) Imagine showing and hiding each list of questions under a section with a single click.
(Ordered List) Clicking on the question would reveal the first hint, clicking on one hint would yield the next, etc.

You could even navigate with the keyboard if you so desire. Here's a demo, tested in IE6 and Opera9 (no keyboard functionality, thankfully this shouldn't be necessary since a vast majority of adventures are point-and-click).

What I'd like to know is, would there be any interest in writing/using hints of this method, instead of walkthroughs or forum hints?

One more thing: I'm no coder. I only know enough to modify some of it, given lots of time, heavy reference and many headaches. Much improvement could probably be made on my edits. Perhaps I could finish tweaking the script to my satisfaction in the next few days, perhaps not ever - now that's a depressing thought. Hence, if Javascript happens to be your cup of coffee, help would be much appreciated. Please. Or if you like, you're more than welcome to tackle these problems yourself.

i) How to show the hints one by one.

Line 112: kid.style.display = "block";
For a start, I can't for the life of me figure out why replacing "kid" with "kids[0]" doesn't show the first hint to that question.

ii) How to make hypertext links within the outline open (not just jump to) the relevant list item.

Shouldn't start on this until I understand how to fix the above.

As far as I can see this isn't a repetition of an old issue, though I apologise if it is! I'm new to this community, though not to amateur adventures in general.
SMF spam blocked by CleanTalk