Demoquest 3 - where's all the code?

Started by jatill, Mon 01/08/2011 20:47:02

Previous topic - Next topic

jatill

I read in the demo quest documentation that it uses Interaction Editor.  I also read that Interaction Editor no longer exists.  So where is the code that automatically shows a hotspot's name when you hover over it?
Thanks.

lilinuyasha

You could use the "mouse moves over hotspot" icon.
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

barefoot

#2
The latest version (3.2) of AGS shows your game's Rooms along with their Script pages where you need to enter your scripts/codes for each room along with an overall Global script. It's quite a way off from earlier versions of AGS so you will need to start to learn script/function coding..

As of yet the Interaction Editor is no longer used in AGS 3.2 but I believe a Plugin is being worked on. Whether it will be incorporated is another thing.

Check out 'Labels' in the help file in AGS... You will see @OVERHOTSPOT@... You can use this to view descriptions of Hotspots, objects etc.

I generally find this a better way to show Hotspot names.

Put a label on a GUI and in its (label) events panel where it says'text' simply put @OVERHOTSPOT@.. It will now display Hotspot decription (make sure you put a description for the Hotspot/object)

barefoot


I May Not Be Perfect but I Have A Big Heart ..

monkey0506

The DemoQuest was being developed with a much earlier version of AGS, but its code is still compatible with the current version. I don't think this question was about how to do this so much as where the code (from the Interaction Editor) has gone. There's a chance of course that jatill was looking to try and find out how to do it, so that information is probably helpful to them, just saying I'm not sure it answers the question.

I don't know what method the DemoQuest used, but it probably used the @OVERHOTSPOT@ method (which is automatically replaced by the engine with the current mouse location's description), or it used the GetLocationName function. Either way, the Interaction Editor probably wasn't involved. However, if it was, all of the Interaction Editor interactions have been converted into regular script functions, and will be in the GlobalScript.asc or the room script (depending what the interaction was pertaining to). So even though the IE has been removed, all of the scripts are still in-tact, so everything should be working the same.

Oh, and barefoot, the only IE-replacement-related plugin I'm aware of ceased in development after the initial release, and the user responsible hasn't logged in here in some six months. I've considered taking a look at what he did and working on something myself, but it's a rather large undertaking and I've been busy with other projects and things.

barefoot

Well, I suppose an IE Plugin would be useful for Noobs...

Perhaps have a  Noob Mode and an advanced Mode.

Food for thought

barefoot
I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk