Wintermute Engine > Scripts, plugins, utilities, goodies

Verb Bar

(1/2) > >>

Jerrot:
Hi,

now here it is - the first public source code version of my verb bar demonstration.

http://wme.jerrot.de/verbbarwin_src.exe

If you don't trust "exe" files, (and in general you shouldn't!) you can also unpack it with 7-zip.

It's not commented yet and I won't find the time to insert them until I return from my holidays in about 2 weeks. Therefore I upload this version as a beta release for you to test and play around with it (if someone's interested!).

I just took and simplified the first scene from the WME demo project to play around with the features. So don't search the exit ;) but try to talk, use the things, try using two books in your inventory together, etc. ! Not many things changed since I published the package, but some bugs are fixed and the source code is at least much cleaner now, most verbbar functions have been outsourced to one included script now.

It's not designed to use as-it-is but it should give you an impression of how it could look and work like, the buttons are just graphics and the inventory is something LucasArts-like.

Oh, and you should work with the newest release ( >= 1.0.030 ) of WME.

The features:

[*]it's a verb bar (wow!)
[*]mouse over caption / command display at the top of the verb bar
[*]object / persons can have default verbs. the default verb is colored when the mouse is over an object with an default value
[*]automatic "use"/"use with" = you can define, if your object can be used alone or only in connection with another object
[*]changing background for dialogs
[*]keyboard shortcuts
[/list]

That's it for now. Feedback and Improvements are welcome, but please remember, that this is only a demonstration (which I even won't use for my own project...) and not a full-features plug-in with editor tools to add buttons etc. ;)

Jerrot.

Mnemonic:
Nice, very nice, Jerrot! Thanks for sharing with us.

Some improvements I can think of... the default verb might be stored as a custom property (similar to what McCoy uses in the Fred game). Also, some code repeats in all scripts (the RightClick, MouseEntry, MouseLeave handlers), those could be put to an include file. But that's just a detail.

odnorf:
YEAH! Good work Jerrot!

A REALLY small suggestion (just to remind you what I said to you over the msn). You should declare the shortcuts in the keys.inc file so that you don't have to use those strange numbers in game.script file. It would make this part of code more readable (is this a valid word?).

Jerrot:
Hey,

thanks for your comments!  :D


--- Quote from: Mnemonic on July 09, 2003, 08:12:08 PM ---Some improvements I can think of... the default verb might be stored as a custom property (similar to what McCoy uses in the Fred game).

--- End quote ---

Yeah, that's a good idea, I had a look at McCoy's script last night and like that way. And I really like the idea of overriding the standard verbs with some custom verbs, using the custom properties ! Really smart. I'll include this fine idea in a following release (thank McCoy!).


--- Quote from: Mnemonic on July 09, 2003, 08:12:08 PM ---Also, some code repeats in all scripts (the RightClick, MouseEntry, MouseLeave handlers), those could be put to an include file. But that's just a detail.

--- End quote ---

True... that's because I customized these events with the functions and default verbs when cleaning up the code finally, they were all different before.  ::)


--- Quote from: odnorf on July 09, 2003, 08:20:30 PM ---You should declare the shortcuts in the keys.inc file so that you don't have to use those strange numbers in game.script file. It would make this part of code more readable (is this a valid word?).

--- End quote ---

Oh, well... that's right of course, I'll do so.  
I'm working with ASCII codes for about 20 years now (yes, that' really true. I'm f***ing old!) so they don't look strange to me , I didn't even look them up somewhere. But I'm crazy anyway.

(And yes, readable is acceptable  ;), we had a MSN discussion about these words before, remember ? )

McCoy:
Hey Jerrot, it works great! I've tested it just a minute ago. But I haven't taken a look to the code, tough...  :-[


--- Quote ---Yeah, that's a good idea, I had a look at McCoy's script last night and like that way. And I really like the idea of overriding the standard verbs with some custom verbs, using the custom properties ! Really smart. I'll include this fine idea in a following release (thank McCoy!).

--- End quote ---

 ;D ;D ;D

Navigation

[0] Message Index

[#] Next page

Go to full version