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

Messages - toast eating fiend

#2
I was rather hoping not to have to include an extra function in every room, but at least this way I can still update the function relatively easily. So I guess the header doesn't get imported into whatever script the events use? Thanks for your answer!
#3
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?
#4
MrColossal:

The philosophy of UHS and similar systems is to provide hints with minimal spoilers. The problem you've mentioned is not inherent in the system, but rooted in careless writing. It can be avoided by making the top level questions more general. For instance, "building a rocket ship" could be under a question relating to a more long-term goal that should not surprise the player, assuming the player explores all available areas adequately before resorting to hints to solve a puzzle. Ideally, questions should be grouped according to their simultaneous availability at any given time. This may be an oversimplification, especially for games that are decidedly non-linear, but I believe it is possible to reach a satisfactory minimum of spoilers given careful attention to detail. At the least, this type of hints is an improvement over walkthroughs. Nothing's perfect after all, though we may still strive to inch closer. :)

The text input you've mentioned sounds like a good idea. It's probably possible to implement a similar feature in the outline, though something exactly like yours sounds much too tricky, involving a lot of work on the author's part as well. The best method I can think of right now involves only the goal, not other factors such as "last inventory item picked up". It may be quite basic, but it ought to do the job. There could be a search field on the page that would return the first of the highest level questions - alone, without listing its siblings - relating to the keywords, which in your example would be "lava bridge". Then if it looks right, players could click on it to reveal the first hint. This way, you wouldn't see the rocket ship. If there was another question like "how do I get back across the lava bridge", it would be hidden until the player asks to see the next result, as it would otherwise be a potential spoiler. Too bad this function is beyond my current capability, we'd have to see about the two main problems first. OpenUHS (I don't know about the regular one, but the online viewer sure doesn't) has something like this, but unfortunately it retrieves too many results (it includes questions which have hints containing the keywords), increasing the risk of spoilers.

Actually, there is an open source UHS reader, but we are still not free to compile UHS files as we like.


EldKatt:

You may be right, manipulating the JavaScript is proving to be a much more difficult task than I'd initially expected it to be. But in this case the problem probably lies with me and not the framework, I imagine an experienced JavaScript coder should have no problems as the language does seem flexible enough. Admittedly, my choice of JavaScript is just me taking the easy way out since I've no clue how to make a backend.
#5
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