Coin Control Interface
Also known as the Curse of Monkey Island Interface.
On this page I am going to show you how to setup an interface that allows you to pop-up a interface at the current mouse cursor position. But, before I do this I want to explain that this interface is by far the most complex interface out of the 4 control interfaces that we can create, & the reason for this being:
- interface could open on mouse hold & then drag/hold cursor over an action icon & release to execute the action on the saved object
- interface could open on mouse hold/left click then require the player to left click on an action icon to execute an action on the saved object
- interface could be setup so that it closes when the player moves the mouse cursor away from the defined interface area
- using lua &/or conditions/values & if queries, you could determine which actions are allowed to be executed on the saved object/character
This is only a few examples of how it could function & you can see what I mean about this being the most complex interface, in terms of how to set it up & how you want it to function.
-- rest of data below (to do)
First things first I would just like to quickly mention something about setting up your mouse cursors as this is something where quite a few people go wrong; well this & when to use the set cursor or set command action parts.
|
To begin with we are going to setup the simplest part of the cycle command interface, which is the cycle part of it. You need to go into mouse properties found under the game section & then you just need to select "activates next command" found under the right mouse button section. Simples! no?
Next we need to create the command interface itself, so open up the interface section & add a new interface, just call it something simple like "control_interface" as it makes it easier to find things quickly. Now we need to create a button for each command you intend to create. Name these all something simple like "walk", "talk", "examine" etc. Now we need to set each of these as a "command button" inside of the button properties tab & then inside of the command properties tab: set the cursor as whatever cursor is for said command. Next, you need to setup what each command can be used on. Because this interface uses multiple commands you can choose whether it can be used on objects, characters or both & whether or not the command can be used on your playable character.
I would recommend leaving them set to normal command.
In the next part (below) I will explain how to use the command interface in game.
Because we are using an interface with multiple commands we no longer have to set the required mouse cursor on mouse over/out. The cursors should automatically change to the cursor that we set inside of the command properties tab of said command whenever we cycle to the next command.
You will however have to create actions on each object, character or item that are allowed to have said action executed on them. Typically if you try to use an action or drop an item that has not been listed on the aforementioned object, character or item then a random comment will be selected from the playable characters comment sets; this is of course providing you have created some.
To cycle commands you just need to right click anywhere on the screen; having said that you could also create a button to be displayed via an interface which the player could click to cycle backwards & forwards through the available commands via the use of action parts.